fix issue

pull/369/head
vapao 2021-08-06 19:38:11 +08:00
parent a02a378a92
commit ca17dd6c98
2 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,7 @@ function Index() {
store.fetchRecords() store.fetchRecords()
if (envStore.records.length === 0) envStore.fetchRecords() if (envStore.records.length === 0) envStore.fetchRecords()
if (appStore.records.length === 0) appStore.fetchRecords() if (appStore.records.length === 0) appStore.fetchRecords()
return () => store.leaveConsole()
}, []) }, [])
function handleBatchDel() { function handleBatchDel() {

View File

@ -142,6 +142,12 @@ class Store {
info = Object.assign({}, info, {mode: 'read'}) info = Object.assign({}, info, {mode: 'read'})
this.tabs.push(info) this.tabs.push(info)
} }
};
leaveConsole = () => {
for (let item of this.tabs) {
item.mode = 'read'
}
} }
} }