Explorar o código

更新默认数据

evoxwht %!s(int64=2) %!d(string=hai) anos
pai
achega
eb2bbfe0b4
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      template/admin/src/setting.js
  2. 1 1
      template/uni-app/config/app.js

+ 1 - 1
template/admin/src/setting.js

@@ -1,5 +1,5 @@
 // 请求接口地址 如果没有配置自动获取当前网址路径
-const VUE_APP_API_URL = 'http://open.net/adminapi' || process.env.VUE_APP_API_URL || `${location.origin}/adminapi`;
+const VUE_APP_API_URL = process.env.VUE_APP_API_URL || `${location.origin}/adminapi`;
 
 const Setting = {
   // 路由前缀

+ 1 - 1
template/uni-app/config/app.js

@@ -8,7 +8,7 @@ module.exports = {
 	// H5配置
 	// #ifdef H5
 	//H5接口是浏览器地址,非单独部署不用修改
-	HTTP_REQUEST_URL: window.location.protocol + "//" + window.location.host,
+	HTTP_REQUEST_URL: `https://v5.wuht.net`||window.location.protocol + "//" + window.location.host,
 	// #endif 
 
 	// 以下配置在不做二开的前提下,不需要做任何的修改