Commit d40a46f8 authored by 李苏's avatar 李苏 💬

标题好了

parent b792e935
...@@ -22,7 +22,7 @@ export function initBm(query) { ...@@ -22,7 +22,7 @@ export function initBm(query) {
/* 系统初始接口 */ /* 系统初始接口 */
export function systeminfo(query) { export function systeminfo(query) {
return request({ return request({
url: '/sgaq/systeminfo', url: '/systeminfo',
method: 'post', method: 'post',
data: query||{} data: query||{}
}) })
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<!-- --> <!-- -->
<!-- --> <!-- -->
<h3 class="title">陕钢安全管理系统</h3> <h3 class="title">{{appName}}</h3>
<el-form-item prop="username"> <el-form-item prop="username">
<el-input <el-input
v-model="loginForm.username" v-model="loginForm.username"
...@@ -92,11 +92,13 @@ import { getCodeImg } from "@/api/login"; ...@@ -92,11 +92,13 @@ import { getCodeImg } from "@/api/login";
import Cookies from "js-cookie"; import Cookies from "js-cookie";
import { encrypt, decrypt } from '@/utils/jsencrypt' import { encrypt, decrypt } from '@/utils/jsencrypt'
import md5 from '@/utils/md5.js' import md5 from '@/utils/md5.js'
import {systeminfo} from "@/api/common/common.js"
export default { export default {
name: "Login", name: "Login",
data() { data() {
return { return {
appName:'',
codeUrl: "", codeUrl: "",
loginForm: { loginForm: {
username: "superuser", username: "superuser",
...@@ -133,6 +135,10 @@ export default { ...@@ -133,6 +135,10 @@ export default {
created() { created() {
// this.getCode(); // this.getCode();
this.getCookie(); this.getCookie();
systeminfo({}).then(res=>{
this.appName=res.data.records.appName||''
document.title=this.appName
})
}, },
methods: { methods: {
getCode() { getCode() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment