摘要:
1.npm install vuex --save (生产环境会用到,因为--save) 2.在src目录下建立store文件夹以及index.js文件。 import Vue from 'vue'; import Vuex from 'vuex'; Vue.use(Vuex); const sta 阅读全文
摘要:
方法一:给el-dropdown根组件监听command ,再el-dropdown-item 绑定commandshuxing值。 methods内详细写监听对应的方法 handleCommand(command) { if(command == 'loginOut'){ this.$confir 阅读全文