ZaiZai 11 сар өмнө
parent
commit
d1aaf264b5

+ 1 - 4
src/layout/index.vue

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