|
@@ -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 = () => {
|