mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
修复 table 列没有记住的问题 (#1455)
This commit is contained in:
parent
856c5a82f2
commit
54ed5756f0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user