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