Browse Source

feat:update

gemercheung 1 year ago
parent
commit
ef80d7f9f8
1 changed files with 11 additions and 5 deletions
  1. 11 5
      src/layout/header.vue

+ 11 - 5
src/layout/header.vue

@@ -9,7 +9,11 @@
           <router-link to="/" v-slot="{ isActive }">
             <span :class="{ active: isActive }">{{ t('room.myRoom') }}</span>
           </router-link>
-          <router-link to="/statistic" v-slot="{ isActive }" v-if="!isInternational">
+          <router-link
+            to="/statistic"
+            v-slot="{ isActive }"
+            v-if="!isInternational"
+          >
             <span :class="{ active: isActive }">{{ t('room.dashboard') }}</span>
           </router-link>
         </div>
@@ -141,10 +145,12 @@ const handlerMenuClick: MenuProps['onClick'] = async e => {
       location.href = `${mainURL}/#/information?lang=${currentLang.value.key}`
       break
     case e.key === 'guideLine':
-      window.open(
-        'https://docs.4dkankan.com/#/product/livestream/zh-cn/README',
-        '_blank'
-      )
+      let url =
+        unref(getLocale) === 'zh'
+          ? 'https://docs.4dkankan.com/#/product/livestream/zh-cn/README'
+          : 'https://docs.4dkankan.com/#/product/livestream/en-us/README'
+      console.log('guideLine', url)
+      window.open(url, '_blank')
       break
   }
 }