CN-1075 table自定义列缓存功能有时会因字段变化导致缓存数据使用报错
This commit is contained in:
@@ -402,7 +402,11 @@ export default {
|
||||
this.pageObj.pageSize = pageSize
|
||||
}
|
||||
const userId = localStorage.getItem(storageKey.userId)
|
||||
let localStorageTableTitle = await indexedDBUtils.selectTable(dbTableColumnCustomizeConfigPre + '-' + this.tableId).get({ id: userId })
|
||||
let tableName = dbTableColumnCustomizeConfigPre + '-' + this.tableId
|
||||
let localStorageTableTitle = []
|
||||
if(indexedDBUtils.selectTable(tableName)){
|
||||
localStorageTableTitle = await indexedDBUtils.selectTable(tableName).get({ id: userId })
|
||||
}
|
||||
|
||||
localStorageTableTitle = localStorageTableTitle && localStorageTableTitle.config
|
||||
? localStorageTableTitle.config
|
||||
|
||||
Reference in New Issue
Block a user