Explorar el Código

feat:weapper修改

ljc hace 1 mes
padre
commit
2c9d8d183d
Se han modificado 4 ficheros con 7 adiciones y 8 borrados
  1. 1 1
      .gitignore
  2. 3 3
      components/cwg-page-wrapper.vue
  3. 2 3
      windows/left-window.vue
  4. 1 1
      windows/top-window.vue

+ 1 - 1
.gitignore

@@ -20,7 +20,7 @@ package-lock
 *.ntvs*
 *.njsproj
 *.sln
-{.json
+*.json
 yarn.lock
 release/
 debug/

+ 3 - 3
components/cwg-page-wrapper.vue

@@ -34,9 +34,9 @@
         <view class="content-wrapper" :class="{ 'content-wrapper-padding': isContentPadding }">
           <!-- <cwg-header /> -->
           <transition name="fade" mode="out-in">
-            <view :key="$route.path">
-              <slot />
-            </view>
+          <view>
+            <slot />
+          </view>
           </transition>
           <cwg-custom-footer />
         </view>

+ 2 - 3
windows/left-window.vue

@@ -49,8 +49,7 @@ const isCollapsed = ref(false)
 
 // ib按钮展示
 const ibStatus = computed(() => {
-  const info: any = userInfo.value
-  return !!info && !!info.customInfo && info.customInfo.ibInvalid == 0 && !!info.ibInfo
+  return userInfo.value?.customInfo?.ibInvalid == 0 && !!userInfo.value?.ibInfo
 })
 
 // 固定菜单项点击事件
@@ -212,4 +211,4 @@ function handleFixedMenuClick() {
     display: flex;
   }
 }
-</style>
+</style>

+ 1 - 1
windows/top-window.vue

@@ -14,7 +14,7 @@
 </template>
 
 <script setup lang="ts">
-  import { ref, computed, defineComponent,watch } from 'vue'
+  import { ref, computed,watch } from 'vue'
   import { storeToRefs } from 'pinia'
   import useUserStore from '@/stores/use-user-store'