mirror of https://github.com/openspug/spug
fix issue
parent
a02a378a92
commit
ca17dd6c98
|
@ -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() {
|
||||||
|
|
|
@ -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'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue