Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
f0473aa4
Commit
f0473aa4
authored
Sep 19, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登陆名称替换
parent
c607f790
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
index.vue
src/components/login/index.vue
+1
-1
admin.vue
src/components/system/admin.vue
+5
-1
No files found.
src/components/login/index.vue
View file @
f0473aa4
...
...
@@ -64,7 +64,7 @@
};
loginApi
(
json
).
then
(
res
=>
{
this
.
$store
.
dispatch
(
'setToken'
,
res
.
token
);
this
.
$store
.
dispatch
(
'setUserName'
,
res
.
user_name
);
this
.
$store
.
dispatch
(
'setUserName'
,
res
.
desc
);
this
.
$store
.
dispatch
(
'setPermission'
,
JSON
.
parse
(
res
.
roles
.
menu_ids
));
window
.
location
.
href
=
'/'
})
...
...
src/components/system/admin.vue
View file @
f0473aa4
...
...
@@ -41,7 +41,7 @@
label=
"用户名"
>
</el-table-column>
<el-table-column
prop=
"role_
id
"
prop=
"role_
name
"
label=
"角色"
>
</el-table-column>
<el-table-column
...
...
@@ -50,6 +50,10 @@
{{
scope
.
row
.
status
|
adminStatus
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"desc"
label=
"备注"
>
</el-table-column>
<el-table-column
v-if=
"!$store.state.readonly"
label=
"操作"
>
...
...
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