fix error
This commit is contained in:
@@ -74,7 +74,10 @@ export default {
|
||||
}
|
||||
])
|
||||
onMounted(() => {
|
||||
if (!props.activeWindow.label) emit('set-window', windows.value[1])
|
||||
const activeWindow = !props.activeWindow.label
|
||||
? windows.value[1]
|
||||
: windows.value.find((w) => w.label === props.activeWindow.label.replace('-', ' '))
|
||||
emit('set-window', activeWindow)
|
||||
})
|
||||
return {
|
||||
windows
|
||||
|
||||
Reference in New Issue
Block a user