This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup>
SFCs, check out the script setup docs to learn more.
- VS Code + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
$ npm init vite@latest vue-demo -- --template vue
$ npm config set registry=https://registry.npmmirror.com
npm i -D vite-plugin-windicss windicss
npm install vue-router@4
npm install axios
npm i @vueuse/integrations
npm i universal-cookie
# store 页面存储
npm i vuex@next --save
# 全局loading 进度条
npm i nprogress
# 前置守卫