随笔分类 - Vue
摘要:vite 为 .jsx 和 .tsx 文件提供开箱即用支持。 如果不是在 react 中使用 jsx,对于报错: React is not defined 需要在 vite.config.js 文件中添加如下配置: export default { esbuild: { jsxFactory: 'h
阅读全文
摘要:1 <el-form class="user-form" ref="ruleFormRef" :model="userForm" status-icon :rules="rules"> 2 <el-form-item label="原密码" prop="oldPass"> 3 <el-input t
阅读全文
摘要:在开发vue ssr应用时, yarn build yarn start 之后启动正常: info Server running at: http://0.0.0.0:6606 在访问页面时,发现页面降级到SPA,服务端报错: debug Server rendering encountered a
阅读全文