Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李苏
sgaqgl-vue
Commits
d40a46f8
Commit
d40a46f8
authored
Nov 21, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标题好了
parent
b792e935
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
common.js
src/api/common/common.js
+1
-1
login.vue
src/views/login.vue
+7
-1
No files found.
src/api/common/common.js
View file @
d40a46f8
...
...
@@ -22,7 +22,7 @@ export function initBm(query) {
/* 系统初始接口 */
export
function
systeminfo
(
query
)
{
return
request
({
url
:
'/s
gaq/s
ysteminfo'
,
url
:
'/systeminfo'
,
method
:
'post'
,
data
:
query
||
{}
})
...
...
src/views/login.vue
View file @
d40a46f8
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment