Commit a77df364 authored by 刘用法's avatar 刘用法

超级用户权限判断

parent f72a36f1
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
async allowLogin() { async allowLogin() {
let res = await this.$u.api.allowLogin() let res = await this.$u.api.allowLogin()
if (res && res.code == 200 && res.data) { if (res && res.code == 200 && res.data) {
this.showSuperButton = res.data.data this.showSuperButton = res.data.data === true
} }
}, },
......
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 to comment