Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
60ffaa15
authored
May 12, 2021
by
肖康
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/xiaokang/cloudSystem
parents
83d268da
3db24fce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
src/components/menu.vue
src/main.js
src/components/menu.vue
View file @
60ffaa15
...
...
@@ -23,9 +23,8 @@
<a
href=
"#"
class=
"fl"
><span
class=
"icon iconfont fl"
>
</span></a>
<div
class=
"line"
></div>
<div
class=
"login-v fl"
>
<img
class=
"fl"
src=
"http://img.ichunt.com/test/images/ichunt/9f/34/9f349b1400f659e5ad270412d4dbe160.jpg"
alt=
""
>
<div
class=
"fl namex"
>
460053411@qq.com
</div>
<img
class=
"fl"
:src=
"userinfo.avatar"
alt=
""
>
<div
class=
"fl namex"
>
{{
userinfo
.
contacts_name
}}
</div>
<div
class=
"fl lo-box-drop"
>
<span
class=
"icon iconfont"
>
</span>
<div
class=
"drop-box"
>
...
...
@@ -152,19 +151,21 @@
Submenu
,
MenuItemGroup
,
Message
,
Dialog
Dialog
,
Button
}
from
'element-ui'
Vue
.
use
(
Menu
).
use
(
MenuItem
).
use
(
MenuItemGroup
).
use
(
Submenu
).
use
(
Form
).
use
(
FormItem
).
use
(
Dialog
);
Vue
.
use
(
Menu
).
use
(
MenuItem
).
use
(
MenuItemGroup
).
use
(
Submenu
).
use
(
Form
).
use
(
FormItem
).
use
(
Dialog
)
.
use
(
Button
)
;
export
default
{
name
:
'menus'
,
props
:
{},
created
()
{
this
.
getData
();
},
data
()
{
return
{
userinfo
:
{},
collapse
:
false
,
isIndexTab
:
true
,
tabSure
:
""
,
...
...
@@ -200,6 +201,13 @@
this
.
tabss
(
this
.
$route
.
path
)
},
methods
:
{
getData
()
{
this
.
$http
(
'get'
,
"/api/user/getuserinfo"
).
then
(
res
=>
{
this
.
userinfo
=
res
.
data
;
}).
catch
(
err
=>
{
})
},
changePwd
()
{
this
.
dialogVisible
=
true
;
},
...
...
src/main.js
View file @
60ffaa15
...
...
@@ -74,7 +74,6 @@ router.beforeEach((to, from, next) => {
if
(
to
.
path
==
"/login"
)
{
next
()
}
else
{
next
();
let
token
=
Util
.
getCookie
(
'token'
)
||
''
;
if
(
!
token
)
{
window
.
location
.
href
=
'/#/login?referer='
+
encodeURI
(
to
.
path
);
...
...
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