同步操作将从 zwc/vue3-element-plus-template 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup>
SFCs, check out the script setup docs to learn more.
.vue
Imports in TSTypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
Extensions: Show Built-in Extensions
from VSCode's command paletteTypeScript and JavaScript Language Features
, right click and select Disable (Workspace)
Developer: Reload Window
from the command palette.1、elementui-plus在使用自动按需引入时,elmessage等配置api 时会报错说找不到对应的模块。解决方法:tsconfig.json文件的include那里 添加auto-imports.d.ts文件,同时在auto-imports.d.ts 引入对应的组件api
2、vite 配置别名的时候会报错。解决方法:tsconfig.json文件配置baseUrl:'./' path:{xxxx}
3、vite启用https时 要引入import basicSsl from '@vitejs/plugin-basic-ssl' 插件
4、vite在vite.config.ts文件中使用环境变量时需要使用loadEnv插件 const env = loadEnv(mode, process.cwd(), 'VITE_')
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。