Commit 60ffaa15 by 肖康

Merge branch 'master' of http://119.23.72.7/xiaokang/cloudSystem

parents 83d268da 3db24fce
Showing with 14 additions and 7 deletions
......@@ -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;
},
......
......@@ -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);
......
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 sign in to comment