Browse Source

修改备案信息

plg 2 days ago
parent
commit
80230cf770
2 changed files with 12 additions and 4 deletions
  1. 11 3
      src/components/CpmdFooter.vue
  2. 1 1
      src/utils/http.ts

+ 11 - 3
src/components/CpmdFooter.vue

@@ -3,12 +3,20 @@ import { onMounted, ref } from 'vue'
 import { base_url } from '@/utils/http'
 
 const ipc = ref<any>()
+const path = ref<any>()
 
 onMounted(() => {
-
-    if (base_url == 'http://123.57.18.29:8089') {
+    path.value = base_url
+    // if (base_url == 'http://123.57.18.29:8089') {
+    //     ipc.value = '粤ICP备2025386772号-2'
+    // }
+    // if (base_url == 'http://129.211.221.44:8089') {
+    //     ipc.value = '粤ICP备2025386772号-1'
+    // }
+
+    if (path.value == 'http://123.57.18.29:8089') {
         ipc.value = '粤ICP备2025386772号-2'
-    } else if (base_url == 'http://129.211.221.44:8089') {
+    } else if (path.value == 'http://129.211.221.44:8089') {
         ipc.value = '粤ICP备2025386772号-1'
     }
 

+ 1 - 1
src/utils/http.ts

@@ -25,7 +25,7 @@ const menuStatus = menuStatusStore()
 //30
 // const base_url = 'http://43.143.198.30:8089/'
 //红朵
-// const base_url = 'http://129.211.221.44:8089'
+// export const base_url = 'http://129.211.221.44:8089'
 
 //锦泓服务器
 // const base_url = 'http://146.56.226.174:8089'