1. 优化加载动画:调整加载动画的时长设置,以增强用户体验。由500毫秒调整至1000毫秒,确保页面完全加载后动画再消失。 2. 修复图片路径引用:在`model-coupon-setting`组件中,修正图片路径引用方式。使用`ref`来异步获取图片路径,并解决在`onBeforeMount`钩子中设置路径的问题。 3. 调整文件输出路径:在`vite.config.ts`中,修改文件的输出路径以优化资源管理。将`chunk`和`entryFileNames`的路径从`static/admin/default/diy`调整为`static/diy`,以适应最新的资源组织结构。 4. 重构布局模板:在`layout/index.vue`中,对布局模板进行重构,以提高代码的可读性和维护性。通过`loading_content`状态管理加载动画的显示与隐藏,更清晰地控制页面的渲染流程。 通过这些改进,系统性能和稳定性得到进一步提升,同时也优化了开发和维护的便利性。 |
||
|---|---|---|
| public | ||
| src | ||
| .env.development | ||
| .env.production | ||
| .env.staging | ||
| .eslintignore | ||
| .eslintrc-auto-import.json | ||
| .eslintrc.cjs | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc.cjs | ||
| LICENSE | ||
| README.md | ||
| index.html | ||
| md-demo.png | ||
| package.json | ||
| temp_pro.d.ts | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
README.md
vue3-vite
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
Type Support for .vue Imports in TS
TypeScript 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:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensionsfrom VSCode's command palette - Find
TypeScript and JavaScript Language Features, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Windowfrom the command palette.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Type-Check, Compile and Minify for Production
npm run build
Lint with ESLint
npm run lint
