Browse Source

2024-2-24

cmy 1 year ago
parent
commit
5a8c624aed
2 changed files with 7 additions and 3 deletions
  1. 1 1
      manifest.json
  2. 6 2
      store/index.js

+ 1 - 1
manifest.json

@@ -178,7 +178,7 @@
         "devServer" : {
             "proxy" : {
                 "/api" : {
-                    "target" : "http://xxpf.frp.liuniu946.com",
+                    "target" : "http://grade.qiniu1314.com",
                     "changeOrigin" : true,
                     "pathRewrite" : {}
                 }

+ 6 - 2
store/index.js

@@ -15,8 +15,12 @@ export function createApp() {
 const store = new Vuex.Store({
 	state: {
 		// baseURL:"http://yrh.liuniu946.com",//'http://eb.shuibo.net',//请求地址配置 
-		baseURL: 'http://grade.liuniukj.com', //请求地址配置 
-		// baseURL:'http://dp.frp.shuibo.net',//请求地址配置 
+		// #ifndef H5
+		baseURL: 'http://grade.qiniu1314.com', //请求地址配置 
+		// #endif
+		// #ifdef H5
+		baseURL: window.location.protocol + "//" + window.location.host,//请求地址配置 
+		// #endif
 		urlFile: '/index', //项目部署所在文件夹
 		hasLogin: false,
 		// #ifdef H5