瀏覽代碼

紧急纠正:改为正式环境

紧急纠正:改为正式环境
dangyunlong 1 天之前
父節點
當前提交
c61974fa48
共有 2 個文件被更改,包括 21 次插入21 次删除
  1. 10 10
      pages/index.vue
  2. 11 11
      plugins/globals.sever.js

+ 10 - 10
pages/index.vue

@@ -155,16 +155,16 @@ try {
 //2.页面数据 end---------------------------------------->
 
 //3.响应式 start ---------------------------------------->
-onMounted(() => {
-    //监听窗口大小
-    window.addEventListener('resize', () => {
-        if(window.innerWidth < 1200){
-            console.log('展示移动端!')
-        }else{
-            console.log('展示PC端!')
-        }
-    })
-})
+// onMounted(() => {
+//     //监听窗口大小
+//     window.addEventListener('resize', () => {
+//         if(window.innerWidth < 1200){
+//             console.log('展示移动端!')
+//         }else{
+//             console.log('展示PC端!')
+//         }
+//     })
+// })
 //3.响应式 end---------------------------------------->
 </script>
 

+ 11 - 11
plugins/globals.sever.js

@@ -1,22 +1,22 @@
 export default defineNuxtPlugin((nuxtApp) => {
-    let currentDomain = '';
+    let currentDomain = '';//http://xnwzzzcs.cunw.org.cn/
     const url = useRequestURL();
     currentDomain = url.origin;
     //console.log("当前运行的域名:" + currentDomain)
     
     //农民网Pre环境
-    nuxtApp.provide('webUrl', 'https://apipre1.bjzxtw.org.cn')
-    nuxtApp.provide('CwebUrl', currentDomain)
-    nuxtApp.provide('BwebUrl', 'https://adminpre.bjzxtw.org.cn')
-    nuxtApp.provide('LoginWebUrl', 'https://adminpre.bjzxtw.org.cn/adminapi')
-    nuxtApp.provide('userUrl', 'http://localhost:3002')
+    // nuxtApp.provide('webUrl', 'https://apipre1.bjzxtw.org.cn')
+    // nuxtApp.provide('CwebUrl', currentDomain)
+    // nuxtApp.provide('BwebUrl', 'https://adminpre.bjzxtw.org.cn')
+    // nuxtApp.provide('LoginWebUrl', 'https://adminpre.bjzxtw.org.cn/adminapi')
+    // nuxtApp.provide('userUrl', 'http://localhost:3002')
 
     //农民网正式环境
-    //   nuxtApp.provide('webUrl', 'https://flzxw.bjzxtw.org.cn')
-    //   nuxtApp.provide('CwebUrl', 'http://nw.nmwwt.org')
-    //   nuxtApp.provide('BwebUrl', 'https://admin.bjzxtw.org.cn')
-    //   nuxtApp.provide('LoginWebUrl', 'http://admin.bjzxtw.org.cn/adminapi')
-    //   nuxtApp.provide('userUrl', 'http://localhost:3002')
+    nuxtApp.provide('webUrl', 'https://flzxw.bjzxtw.org.cn')
+    nuxtApp.provide('CwebUrl', currentDomain)
+    nuxtApp.provide('BwebUrl', 'https://admin.bjzxtw.org.cn')
+    nuxtApp.provide('LoginWebUrl', 'http://admin.bjzxtw.org.cn/adminapi')
+    nuxtApp.provide('userUrl', 'http://localhost:3002')
 
     //Dev环境
     // nuxtApp.provide('webUrl', 'http://apidev.bjzxtw.org.cn')