mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-14 06:30:57 +00:00
perf: 重新切换到 settings tab 时加载之前编辑的内容
This commit is contained in:
@@ -67,6 +67,10 @@ const modified = ref(false)
|
|||||||
const refresh = () => {
|
const refresh = () => {
|
||||||
proxy.$axios.get('/settings').then(response => {
|
proxy.$axios.get('/settings').then(response => {
|
||||||
managerList.value = response.data.data.managers
|
managerList.value = response.data.data.managers
|
||||||
|
|
||||||
|
if (proxy.$store.state.settingsPageTab != '') {
|
||||||
|
fetchCurrentManagerData(proxy.$store.state.settingsPageTab)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user