Commit f72a36f1 authored by Damon's avatar Damon

merge

parents 369bd8b1 b808cf47
...@@ -173,18 +173,20 @@ ...@@ -173,18 +173,20 @@
} }
this.$u.route({url: "pages/login/index"}) this.$u.route({url: "pages/login/index"})
}, },
logout() {
app.setUserData({}, this)
app.globalData.logout = true
},
handleSuperButton() {
this.$u.route({url: 'pages/mine/superLogin/index'})
},
async allowLogin() { async allowLogin() {
let res = await this.$u.api.allowLogin() let res = await this.$u.api.allowLogin()
console.log(res) if (res && res.code == 200 && res.data) {
if (res) { this.showSuperButton = res.data.data
this.showSuperButton = res.code == 200
} }
}, },
logout() {
app.setUserData({}, this)
app.globalData.logout = true
},
handleSuperButton() { handleSuperButton() {
this.$u.route({url: 'pages/mine/superLogin/index'}) this.$u.route({url: 'pages/mine/superLogin/index'})
} }
......
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