|
@@ -3,12 +3,15 @@ import request from '@/utils/request';
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- newColumns: []
|
|
|
|
|
|
|
+ newColumns: [],
|
|
|
|
|
+ tabMixinsInit: true //进入页面是否默认请求列配置
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
//从服务器获取缓存列表配置
|
|
//从服务器获取缓存列表配置
|
|
|
- this.getTabColumns();
|
|
|
|
|
|
|
+ if (this.tabMixinsInit) {
|
|
|
|
|
+ this.getTabColumns();
|
|
|
|
|
+ }
|
|
|
// 创建防抖函数并绑定this
|
|
// 创建防抖函数并绑定this
|
|
|
this.debouncedHandleColumnChange = this.debounce(
|
|
this.debouncedHandleColumnChange = this.debounce(
|
|
|
this.handleColumnChangeImpl,
|
|
this.handleColumnChangeImpl,
|