Browse Source

修改bug

bill 1 năm trước cách đây
mục cha
commit
64d8051d50
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      src/layout/show/index.vue

+ 3 - 2
src/layout/show/index.vue

@@ -1,8 +1,8 @@
 <template>
   <template v-if="loaded">
-    <div :class="{ hideLeft: !custom.showLeftPano }" :style="params.share ? {'--left-pano-left': '0px'} : ''">
+    <div :class="{ hideLeft: !custom.showLeftPano }" :style="hasShare ? {'--left-pano-left': '0px'} : ''">
       <SlideMenu 
-        v-if="!params.share"
+        v-if="!hasShare"
         :activeName="(router.currentRoute.value.name as RoutesName)" 
         @change-item="item => router.push({ name: item.name })"
       />
@@ -37,6 +37,7 @@ import {
   initialGuides
 } from '@/store'
 
+const hasShare = new URLSearchParams(location.search).has("share")
 
 const loaded = ref(false)
 const initialSys = async () => {