Pārlūkot izejas kodu

feat: 数据看板国际hide

gemercheung 1 gadu atpakaļ
vecāks
revīzija
f9b4346736
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/layout/header.vue

+ 2 - 2
src/layout/header.vue

@@ -9,7 +9,7 @@
           <router-link to="/" v-slot="{ isActive }">
             <span :class="{ active: isActive }">{{ t('room.myRoom') }}</span>
           </router-link>
-          <router-link to="/statistic" v-slot="{ isActive }">
+          <router-link to="/statistic" v-slot="{ isActive }" v-if="!isInternational">
             <span :class="{ active: isActive }">{{ t('room.dashboard') }}</span>
           </router-link>
         </div>
@@ -107,7 +107,7 @@ const currentLang = ref({
 })
 
 const logoPng = computed(() => getImgSrc(`logo_${unref(currentLang).key}`))
-
+const isInternational = ref(import.meta.env.VITE_IS_INTERNATIONAL)
 // const currentLang = computed(() => {
 //   return {
 //     key: getLocale,