09 2020 档案
摘要:module.exports = { publicPath: "/", // 部署应⽤包时的基本 URL outputDir: "dist", // npm run build ⽣成的⽂件夹,默认是dist assetsDir: "static", // 在kaixin⽂件夹下⾯⽣成static⽬录
阅读全文
摘要:引入vue和仓库文件 import Vue from 'vue'; import Vuex from 'vuex'; 初始化vuex Vue.use(Vuex); 实例化仓库 let store = new Vuex.Store({ state:{ //存储状态 val:"data" }, gett
阅读全文