fix init after login, keep browser state
This commit is contained in:
parent
fd85411c77
commit
cd58c0581a
@ -132,7 +132,6 @@ async function onSubmitChannel() {
|
||||
|
||||
if (update.status) {
|
||||
indexStore.msgAlert('success', t('config.updateChannelSuccess'), 2)
|
||||
await configStore.getPlayoutConfig()
|
||||
} else {
|
||||
indexStore.msgAlert('error', t('config.updateChannelFailed'), 2)
|
||||
}
|
||||
|
@ -96,8 +96,10 @@ defineProps({
|
||||
},
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
mediaStore.getTree('')
|
||||
onMounted(async () => {
|
||||
if (!mediaStore.folderTree.parent || !mediaStore.currentPath) {
|
||||
await mediaStore.getTree('')
|
||||
}
|
||||
})
|
||||
|
||||
watch([id], () => {
|
||||
|
@ -127,7 +127,7 @@ async function login() {
|
||||
}, 3000)
|
||||
}
|
||||
|
||||
await configStore.nuxtClientInit()
|
||||
await configStore.configInit()
|
||||
} catch (e) {
|
||||
formError.value = e as string
|
||||
}
|
||||
|
@ -368,7 +368,7 @@ onMounted(async () => {
|
||||
|
||||
extensions.value = exts.join(', ')
|
||||
|
||||
if (!mediaStore.folderTree.parent) {
|
||||
if (!mediaStore.folderTree.parent || !mediaStore.currentPath) {
|
||||
await mediaStore.getTree('')
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user