为简化开发工作、提高生产率、解决常见问题而生
- 后端使用
- xuxiaowei-cloud
- 基于 JDK 8、Spring Boot 2.7.x、OAuth 2.1、Vite、Vue 3、Element Plus 的微服务
- xuxiaowei-cloud-next
- 基于 JDK 17、Spring Boot 3.0.0、OAuth 2.1、Vite、Vue 3、Element Plus 的微服务
- xuxiaowei-cloud
- init
npm create vite@latest vant-h5 -- --template vue-ts
npm i [email protected]
npm i unplugin-vue-components -D
npm i eslint -D
npx eslint --init
# 选择
# To check syntax, find problems, and enforce code style
# JavaScript modules (import/export)
# Vue.js
# use TypeScript
# √ Browser
# Use a popular style guide
# Standard: https://github.com/standard/standard
# JavaScript
npm i axios
npm i crypto-js
npm i js-cookie
npm i jsencrypt
npm i sockjs-client
npm i stompjs
npm i vue-clipboard3
npm i vue-router
npm i vuex
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.
Since TypeScript cannot handle type information for .vue
imports, they are shimmed to be a generic Vue component type
by default. In most cases this is fine if you don't really care about component prop types outside of templates.
However, if you wish to get actual prop types in .vue
imports (for example to get props validation when using
manual h(...)
calls), you can enable Volar's Take Over mode by following these steps:
- Run
Extensions: Show Built-in Extensions
from VS Code's command palette, look forTypeScript and JavaScript Language Features
, then right click and selectDisable (Workspace)
. By default, Take Over mode will enable itself if the default TypeScript extension is disabled. - Reload the VS Code window by running
Developer: Reload Window
from the command palette.
You can learn more about Take Over mode here.