浏览代码

修改登录页

ZaiZai 1 年之前
父节点
当前提交
2e38eb8ef4
共有 2 个文件被更改,包括 6 次插入5 次删除
  1. 4 3
      src/config/index.js
  2. 2 2
      src/views/login/main.vue

+ 4 - 3
src/config/index.js

@@ -18,13 +18,14 @@ export default {
     statusWhiteList: [], //http的status默认放行列表
     isLog: 'auto', //是否打印日志
     ...config,
+    //进入新登录页的域名或端口
+    domains: ['localhost:5174'],
+    ports: ['5174'],
+    //其它地址
     ossUrl: 'https://bladex-chongqing-info.oss-cn-hangzhou.aliyuncs.com', //oss地址
     socket: 'wss://business.hcxxy.com/wss/websocket/', //测试线上
-
     //这里不再支持配置请求地址,请在 src/config/index.json 文件中配置。
     //相关参数,可查阅 src/config/index.md 文件说明
-
     //target: 'http://47.110.251.215:8090',  //测试线上
     //target: 'http://127.0.0.1:8090',  //打包线上
-    //刘依程  192.168.0.155
 }

+ 2 - 2
src/views/login/main.vue

@@ -15,14 +15,14 @@
 import { onMounted } from 'vue'
 import { getTopUrl } from '~uti/tools'
 import router from '~src/router/index'
+import config from '~src/config/index'
 
 //使用新登录页的域名和端口
 let newDomain = []
-const domains = ['localhost:5174']
-const port = ['5174']
 
 //渲染完成
 onMounted(() => {
+    const domains = config.domains, port = config.ports
     const currentDomain = getTopUrl()
     //把http和https加进去
     newDomain = []