摘要:
//npm或yarn安装并引入sortablejs import Sortable from "sortablejs"; //重要的一步(element 的表格一定要加上 row-key,后面跟id(唯一标识符),与v-for添加key属性类似) <el-table :height="TableHe 阅读全文
摘要:
//核心代码,需要使用vue.use全局注册,只需参照博主的封装axios // import {apiServer} from './../../common.js' class http { static request(url, params = {}, method = "POST", co 阅读全文
摘要:
//想必各位朋友一定经历着,改变state,getters却不改变的痛苦,接下来博主给出解决方案; //方案很简单,第一步,改变state时,如改变state中的cart属性时,引入vue,使用vue set添加未定义的flag,如下: import Vue from 'vue'; //一定要引入v 阅读全文