|
@@ -124,6 +124,7 @@
|
|
|
|
|
|
interface State {
|
|
interface State {
|
|
checkAll: boolean;
|
|
checkAll: boolean;
|
|
|
|
+ isInit: boolean;
|
|
checkedList: string[];
|
|
checkedList: string[];
|
|
defaultCheckList: string[];
|
|
defaultCheckList: string[];
|
|
}
|
|
}
|
|
@@ -180,7 +181,7 @@
|
|
|
|
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|
|
const columns = table.getColumns();
|
|
const columns = table.getColumns();
|
|
- if (columns.length) {
|
|
|
|
|
|
+ if (columns.length && !state.isInit) {
|
|
init();
|
|
init();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -233,6 +234,7 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ state.isInit = true;
|
|
state.checkedList = checkList;
|
|
state.checkedList = checkList;
|
|
}
|
|
}
|
|
|
|
|