浏览代码

可视化消息提醒

wang_xy 2 年之前
父节点
当前提交
8b9cfd02da
共有 1 个文件被更改,包括 4 次插入11 次删除
  1. 4 11
      src/components/v-fastmenu.vue

+ 4 - 11
src/components/v-fastmenu.vue

@@ -22,7 +22,7 @@
 						<el-button type="primary" size="small" @click="resetPwd">修改密码</el-button>
 						<el-button type="warning" size="small" @click="logout">退出登录</el-button>
 					</div>
-					<a @click="backToMainPage" style="border-top: 1px solid #334780;"><i class="el-icon-s-home"></i>返回首页</a>
+          <el-link type="primary" @click="backToMainPage" style="border-top: 1px solid #334780;" icon="el-icon-s-home">返回首页</el-link>
 <!--					<a href="#"><i class="el-icon-monitor"></i>管理系统</a>-->
 				</div>
 				<div slot="reference" style="text-align: center; width:4rem;height:3rem;">
@@ -40,6 +40,7 @@
 import resetPwd from "../views/system/user/profile/resetPwd";
 import { getUserProfile } from "@/api/system/user";
 import { selectConfigKey } from "@/api/system/config";
+import Cookies from 'js-cookie';
 	export default {
     components: {resetPwd },
 		data() {
@@ -66,11 +67,6 @@ import { selectConfigKey } from "@/api/system/config";
 
 			}
 		},
-    provide(){
-      return{
-        closePage:this.closePage
-      }
-    },
     created() {
       this.getUser()
     },
@@ -85,6 +81,8 @@ import { selectConfigKey } from "@/api/system/config";
           this.nickName=response.data.nickName
           this.deptNames=response.data.deptNames
           this.phonenumber=response.data.phonenumber
+          this.userId=response.data.userId
+          Cookies.set('userId',response.data.userId);
         });
       },
       resetPwd(){
@@ -105,12 +103,7 @@ import { selectConfigKey } from "@/api/system/config";
             location.href = '/index';
           })
         }).catch(() => {});
-      },
-
-      closePage(){
-        this.isResetPwd = false;
       }
-
 		},
 		computed: {},