tianyi 6 days ago
parent
commit
094d33d25b
3 changed files with 4 additions and 4 deletions
  1. 1 1
      config/index.js
  2. 2 2
      src/utils/httpRequest.js
  3. 1 1
      src/views/common/login.vue

+ 1 - 1
config/index.js

@@ -16,7 +16,7 @@ module.exports = {
       '/sqx_fast': {
 			// target: 'http://192.168.0.133:7155/sqx_fast/',
 			// target: 'https://zpadmin.xianmaxiong.com/sqx_fast/',
-			target: 'http://yizhizan.edccc.cn/sqx_fast',
+			target: 'http://yizhizan.edccc.cn/sqx_fast/',
 			changeOrigin: true,
 			pathRewrite: {
 				'^/sqx_fast': ''

+ 2 - 2
src/utils/httpRequest.js

@@ -43,7 +43,7 @@ http.interceptors.response.use(response => {
 http.adornUrl = (actionName) => {
   // 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截!
   // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName
-	return 'http://yizhizan.edccc.cn/sqx_fast' + actionName
+	return 'http://yizhizan.edccc.cn/sqx_fast/' + actionName
 	// return 'https://zpadmin.xianmaxiong.com/sqx_fast/' + actionName
 	// return '/sqx_fast/' + actionName
 }
@@ -51,7 +51,7 @@ 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://yizhizan.edccc.cn/wss' + actionName
+	return 'wss://yizhizan.edccc.cn/wss/' + actionName
 	// return 'https://zpadmin.xianmaxiong.com.com/sqx_fast/' + actionName
 }
 

+ 1 - 1
src/views/common/login.vue

@@ -92,7 +92,7 @@
       // 获取验证码
       getCaptcha () {
         this.dataForm.uuid = getUUID()
-        this.captchaPath = this.$http.adornUrl(`/captcha.jpg?uuid=${this.dataForm.uuid}`)
+        this.captchaPath = this.$http.adornUrl(`captcha?uuid=${this.dataForm.uuid}`)
       }
     }
   }