Browse Source

增加网站是否可以访问的判断

Jing 3 ngày trước cách đây
mục cha
commit
1e60d92f96

+ 1 - 1
.nuxt/manifest/latest.json

@@ -1 +1 @@
-{"id":"52398806-1b5c-4db2-a8ea-38612f30bac2","timestamp":1749792346290}
+{"id":"9a343ac5-02ed-464f-b401-843410b7f553","timestamp":1750141208459}

+ 0 - 1
.nuxt/manifest/meta/52398806-1b5c-4db2-a8ea-38612f30bac2.json

@@ -1 +0,0 @@
-{"id":"52398806-1b5c-4db2-a8ea-38612f30bac2","timestamp":1749792346290,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 1 - 0
.nuxt/manifest/meta/9a343ac5-02ed-464f-b401-843410b7f553.json

@@ -0,0 +1 @@
+{"id":"9a343ac5-02ed-464f-b401-843410b7f553","timestamp":1750141208459,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}

+ 1 - 1
.nuxt/tsconfig.json

@@ -102,7 +102,7 @@
         "./imports"
       ],
       "#app-manifest": [
-        "./manifest/meta/52398806-1b5c-4db2-a8ea-38612f30bac2.json"
+        "./manifest/meta/9a343ac5-02ed-464f-b401-843410b7f553.json"
       ],
       "#components": [
         "./components"

+ 6 - 2
components/home/pageHead.vue

@@ -244,8 +244,12 @@ let getLogo = async () => {
         method: 'GET',
         query: {},
     });
-    logo.value = responseStatus.data.logo;
-    webSiteName.value = responseStatus.data.website_name;
+    if (responseStatus.code == 200) {
+        logo.value = responseStatus.data.logo;
+        webSiteName.value = responseStatus.data.website_name;
+    } else if (responseStatus.code == 0) {
+        window.location.href = $CwebUrl + '/404';
+    }
 }
 getLogo();
 //3.跳转菜单逻辑 end ---------------------------------------->