Explorar o código

返回平台判断是否是政府,由===改为includes

louhangfei %!s(int64=2) %!d(string=hai) anos
pai
achega
604556f7fc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/layout/components/Header/index.vue

+ 1 - 1
src/layout/components/Header/index.vue

@@ -268,7 +268,7 @@
   });
 
   const getPLUrl = () => {
-    return userStore.getUserInfo.username === 'gov'
+    return userStore.getUserInfo.username?.includes('gov')
       ? urlJoin(location.origin, '/skyeye-world/')
       : urlJoin(location.origin, '/skyeyev3pc/');
   };