feat: 根据端口9408完成登录页和标签页标题,首页地址的修改

This commit is contained in:
Tony 2024-07-12 15:26:37 +08:00
parent 97621d8a18
commit 1eefd8299d
4 changed files with 28 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 MiB

View File

@ -166,6 +166,10 @@ export default {
this.title = '工业视觉平台'
document.title = '工业视觉平台'
break;
case '9408':
this.title = '车间产线出入库管理系统'
document.title = '车间产线出入库管理系统'
break;
default:
this.title = ' '

View File

@ -23,6 +23,7 @@
<cdapChart v-else-if="port === '9404'" />
<interface-home v-else-if="port === '9406'" />
<machine v-else-if="port === '9407'" />
<interface-home v-else-if="port === '9408'" />
<operate-home v-else-if="port === '80' || port === ''"></operate-home>
<workshop v-else-if="port === '9408'"></workshop>
<home-page v-else></home-page>

View File

@ -71,7 +71,7 @@ export default {
name: "Login",
data() {
return {
title: '',
title: '欢迎登录',
codeUrl: "",
loginForm: {
username: "",
@ -117,6 +117,7 @@ export default {
handlePort() {
//
let port = window.location.port;
console.log("PORT", port);
const loginDom = document.getElementById('loginDom');
switch (port) {
case '9130':
@ -295,6 +296,27 @@ export default {
const dom31 = document.querySelector('.login-form')
dom31.style.marginLeft = '64vw'
break;
case '9408':
document.title = '车间产线出入库管理系统'
loginDom.style.backgroundImage = 'url(/images/cjcx.png)'
this.redirect = '/index'
const dom311 = document.querySelector('.login-form')
dom311.style.marginLeft = '39vw'
const _title1 = document.createElement('div');
_title1.innerHTML = '车间产线出入库管理系统';
_title1.style.position = 'fixed';
_title1.style.width = '33rem';
_title1.style.left = '3vw';
_title1.style.top = '4vh'
_title1.style.color = 'transparent'
_title1.style.textAlign = 'center'
_title1.style.fontSize = '3rem'
_title1.style.backgroundImage = 'linear-gradient(to top, #1890ff, #1890ff80)'
_title1.style.webkitBackgroundClip = 'text'
_title1.style.fontFamily = 'BiaoTiFont'
loginDom.appendChild(_title1)
break;
default:
document.title = ''
loginDom.style.backgroundImage = 'url(/images/gangyin-bg.png)'