duy 1 týždeň pred
rodič
commit
f67ed68f60

+ 1 - 1
src/config/index.js

@@ -19,7 +19,7 @@ export default {
     isLog: 'auto', //是否打印日志
     //进入新登录页的域名或端口
     domains: [],
-    ports: ['7777'],
+    ports: ['7777', '8888'],
     //其它地址
     ossUrl: 'https://bladex-chongqing-info.oss-cn-hangzhou.aliyuncs.com', //oss地址
     //线上还没有,先关掉,防止控制他一直连接失败

+ 1 - 0
src/styles/view/login.scss

@@ -48,6 +48,7 @@
             font-size: 43px;
             font-weight: 400;
             color: $green;
+            white-space: nowrap;
         }
         .sign-list {
             position: relative;

+ 31 - 1
src/views/login/index.vue

@@ -13,7 +13,9 @@
             </Suspense>
         </div>
         <div class="right-container">
-            <div class="right-app-title">工程数字档案管理平台</div>
+            <div class="right-app-title" v-if="isShowHe">河南熙诚工程数字档案管理平台</div>
+            <div class="right-app-title " v-else>工程数字档案管理平台</div>
+            
             <div class="sign-list">
                 <div class="title-tab">
                     <div :class="account ? 'active' : ''" @click="accountClick">密码登录</div>
@@ -75,6 +77,7 @@ import { getTopUrl } from '~uti/tools'
 import HcPicVue from './components/pic.vue'
 import HcHomeBg from './components/home-bg.vue'
 import { formValidate, getObjVal, setImageColorStyle } from 'js-fast-way'
+import config from '~src/config/index'
 
 const userStore = useAppStore()
 userStore.clearStoreData() //先清理下缓存
@@ -82,6 +85,8 @@ userStore.clearStoreData() //先清理下缓存
 //系统信息
 const appLogoIcon = ref('')
 const appLogoName = ref('')
+
+const isShowHe = ref(false)
 //首页模式
 const IndexModel = ref(userStore.getIndexModel)
 //切换登录类型
@@ -93,8 +98,33 @@ const accountClick = () => {
 }
 
 onMounted(() => {
+    //根据端口显示登录信息
+    const domains = config.domains, port = config.ports
+    const currentDomain = getTopUrl()
+    //把http和https加进去
+    let  newDomain = []
+        for (let i = 0; i < domains.length; i++) {
+            newDomain.push('http://' + domains[i])
+            newDomain.push('https://' + domains[i])
+        }
+     //判断端口和域名
+     try {
+        const urls = currentDomain.split(':')
+        if (urls.length >= 3 && urls[2]==='8888') {
+           isShowHe.value = true
+
+        }
+        else {
+            isShowHe.value = false
+        }
+    } catch (e) {
+        isShowHe.value = false
+    }
+    
     getTenantIdApi()
     setAppImageColor()
+
+    
 })
 
 const setAppImageColor = () => {

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

@@ -24,6 +24,7 @@ let newDomain = []
 onMounted(() => {
     const domains = config.domains, port = config.ports
     const currentDomain = getTopUrl()
+    
     //把http和https加进去
     newDomain = []
     for (let i = 0; i < domains.length; i++) {
@@ -33,11 +34,10 @@ onMounted(() => {
     //判断端口和域名
     try {
         const urls = currentDomain.split(':')
-        if (urls.length >= 3 && port.indexOf(urls[2]) !== -1) {
-            router.push({ name: 'new-login' })
-        } else if (newDomain.indexOf(currentDomain) !== -1) {
+
+        if (urls.length >= 3 && port.indexOf(urls[2]) !== -1&& urls[2]==='7777') {
             router.push({ name: 'new-login' })
-        } else {
+        }  else {
             router.push({ name: 'login' })
         }
     } catch (e) {