cmd打开控制面板
下载:npm i vuex-persist --save
持久化
在mine.js引入
import vuexPersist from 'vuex-persist'
plugins:[
new vuexPersist({
Storage:window.localStorage
}).plugin
]
安装vue
vue create demo
这是基础的网址
http://codesohigh.com/subject/vue/base/day01.html
vue3 Ant按需引入
"plugins": [
["import", { "libraryName": "ant-design-vue", "libraryDirectory": "es", "style": "css" }] // `style: true` 会加载 less 文件
]