修复 table 列没有记住的问题 (#1455)

This commit is contained in:
liaoxuezhi 2021-01-27 12:07:34 +08:00 committed by GitHub
parent 856c5a82f2
commit 54ed5756f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -979,7 +979,7 @@ export const TableStore = iRendererStore
persistSaveToggledColumns,
// events
afterAttach() {
afterCreate() {
setTimeout(() => {
if (!isAlive(self)) {
return;
@ -988,6 +988,7 @@ export const TableStore = iRendererStore
location.pathname +
self.path +
self.toggableColumns.map(item => item.name || item.index).join('-');
const data = localStorage.getItem(key);
if (data) {