Przeglądaj źródła

修改接口地址

dujingxian 4 lat temu
rodzic
commit
7dc4fb1377
3 zmienionych plików z 7 dodań i 3 usunięć
  1. 4 2
      src/api/index.js
  2. 1 1
      src/router/index.js
  3. 2 0
      vue.config.js

+ 4 - 2
src/api/index.js

@@ -102,8 +102,10 @@ let requestLoading = (url, method, params) => {
     })
     })
 };
 };
 
 
-const Prefix = 'http://192.168.1.195/mobile/index.php?';
-// const Prefix = 'https://www.xyzshops.cn/mobile/index.php?';
+// const Prefix = 'http://192.168.1.220/mchsrv/index.php?';
+
+const Prefix = 'http://192.168.1.195/mchsrv/index.php?';
+// const Prefix = 'https://www.xyzshops.cn/mchsrv/index.php?';
 // 椰子临时线上地址
 // 椰子临时线上地址
 // const Prefix = 'http://121.89.196.45/mobile/index.php?';
 // const Prefix = 'http://121.89.196.45/mobile/index.php?';
 
 

+ 1 - 1
src/router/index.js

@@ -170,7 +170,7 @@ Vue.use(VueRouter)
 const router = new VueRouter({
 const router = new VueRouter({
   routes,
   routes,
   mode: 'hash',
   mode: 'hash',
-  base: '/mchsrv'
+  base: '/merchant'
 })
 })
 /* 判断PC或移动端 */
 /* 判断PC或移动端 */
 function IsPC() {
 function IsPC() {

+ 2 - 0
vue.config.js

@@ -1,3 +1,5 @@
+// const targetUrl = 'http://192.168.1.220/'
+
 const targetUrl = 'http://192.168.1.195/'
 const targetUrl = 'http://192.168.1.195/'
 
 
 // const targetUrl = 'https://www.xyzshops.cn/'
 // const targetUrl = 'https://www.xyzshops.cn/'