Browse Source

系统信息

master
yxq 1 month ago
parent
commit
949d23f9e6
1 changed files with 15 additions and 3 deletions
  1. +15
    -3
      monitorMobile/pages/login.vue

+ 15
- 3
monitorMobile/pages/login.vue View File

@@ -1,9 +1,9 @@
<template>
<view style="height: 100%;">
<view class="logoBox">
<image src="/static/image/logo.png" mode="heightFix"></image>
<image :src="logo" mode="heightFix"></image>
<view class="logoText">
AI监控预警分析平台
{{title}}
</view>
</view>
<view class="loginBox">
@@ -72,10 +72,22 @@
callback();
},
}]
}
},
logo:'',
title:''
}
},
onLoad(e) {
this.$http.get('http://123.57.209.16:8004/api/sys/sysInfo?_t=1728522588922').then(res=>{
if(res.code == 200){
let sysInfo = res.data
this.$u.vuex('sysInfo', sysInfo)
let titleObj = sysInfo.find(e=>e.configKey == 'SYS_NAME')
if(titleObj)this.title = titleObj.configValue
let logoObj = sysInfo.find(e=>e.configKey == 'SYS_LOGO')
if(logoObj)this.logo = logoObj.configValue
}
})
if (e.redirect) this.redirect = e.redirect
if (process.env.NODE_ENV === 'development') {
this.form.account = 'superAdmin'


Loading…
Cancel
Save