diff --git a/static/html/main.html b/static/html/main.html index c08178f..23a3352 100644 --- a/static/html/main.html +++ b/static/html/main.html @@ -71,6 +71,8 @@ data: { iframeUrl:"", mailTotal:0, + adminAvator:"", + adminRole:"", }, methods: { openIframeUrl(url){ @@ -97,6 +99,8 @@ if (data.code != 200) { window.location.href="/login"; } else { + _this.adminAvator=data.result.avator; + _this.adminRole=data.result.role_name; _this.iframeUrl = "/chat_main"; } } diff --git a/static/html/nav.html b/static/html/nav.html index b17e24f..e8d96ec 100644 --- a/static/html/nav.html +++ b/static/html/nav.html @@ -7,6 +7,14 @@ 聊天 设置 - 退出 + + + + 退出 + + {{end}} \ No newline at end of file