调整为生产环境
This commit is contained in:
parent
e34e032aeb
commit
aaf82dad5e
|
@ -14,9 +14,8 @@ module.exports = {
|
|||
// 代理列表, 是否开启代理通过[./dev.env.js]配置
|
||||
proxyTable: devEnv.OPEN_PROXY === false ? {} : {
|
||||
'/proxyApi': {
|
||||
// target: "https://sausers.blxinchuang.com/sqx_fast/",
|
||||
target: "http://localhost:8187/sqx_fast/",
|
||||
// target: "https://admin.sjajk.com/sqx_fast/", //生产需替换
|
||||
// target: "http://localhost:8187/sqx_fast/",
|
||||
target: "https://admin.sjajk.com/sqx_fast/", //生产需替换
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/proxyApi': ''
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
import Vue from 'vue'
|
||||
|
||||
// const serverUrl = "https://admin.sjajk.com/sqx_fast/";//生产需替换
|
||||
const serverUrl = "http://localhost:8187/sqx_fast/";
|
||||
// const serverUrl = "http://120.46.52.165/sqx_fast/";
|
||||
// const serverUrl = "https://sausers.blxinchuang.com/sqx_fast/";
|
||||
const serverUrl = "https://admin.sjajk.com/sqx_fast/";//生产需替换
|
||||
// const serverUrl = "http://localhost:8187/sqx_fast/";
|
||||
|
||||
export const serverPaths = {
|
||||
serverUrl ,
|
||||
|
|
|
@ -53,7 +53,6 @@ http.adornUrl = (actionName) => {
|
|||
http.adornWss = (actionName) => {
|
||||
// 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截!
|
||||
// return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName
|
||||
// return 'wss://sausers.blxinchuang.com/wss/' + actionName
|
||||
return 'wss://admin.sjajk.com/wss/' + actionName //生产需替换
|
||||
// return 'https://anmoadmin5.0.xianmaxiong.comsqx_fast/' + actionName
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue