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

标题好了

parent b792e935
......@@ -22,7 +22,7 @@ export function initBm(query) {
/* 系统初始接口 */
export function systeminfo(query) {
return request({
url: '/sgaq/systeminfo',
url: '/systeminfo',
method: 'post',
data: query||{}
})
......
......@@ -26,7 +26,7 @@
<!-- -->
<!-- -->
<h3 class="title">陕钢安全管理系统</h3>
<h3 class="title">{{appName}}</h3>
<el-form-item prop="username">
<el-input
v-model="loginForm.username"
......@@ -92,11 +92,13 @@ import { getCodeImg } from "@/api/login";
import Cookies from "js-cookie";
import { encrypt, decrypt } from '@/utils/jsencrypt'
import md5 from '@/utils/md5.js'
import {systeminfo} from "@/api/common/common.js"
export default {
name: "Login",
data() {
return {
appName:'',
codeUrl: "",
loginForm: {
username: "superuser",
......@@ -133,6 +135,10 @@ export default {
created() {
// this.getCode();
this.getCookie();
systeminfo({}).then(res=>{
this.appName=res.data.records.appName||''
document.title=this.appName
})
},
methods: {
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