|
@@ -100,10 +100,7 @@ onMounted(() => {
|
|
|
})
|
|
|
|
|
|
//监听layout
|
|
|
-watch(() => [
|
|
|
- useRoutes?.query?.layout,
|
|
|
- store.isLayout,
|
|
|
-], ([layout, layout2]) => {
|
|
|
+watch(() => [useRoutes?.query?.layout, store.isLayout], ([layout, layout2]) => {
|
|
|
isLayout.value = layout ?? layout2
|
|
|
}, { deep: true })
|
|
|
|