Commit 200859ce Harvey

退出登陆

1 个父辈 5e18dda3
...@@ -44,9 +44,9 @@ ...@@ -44,9 +44,9 @@
name: '缓存清理', name: '缓存清理',
to: '' to: ''
}] }]
], ],
name:'彩店名称', name: '彩店名称',
addr:'' addr: ''
} }
}, },
async onLoad(e) { async onLoad(e) {
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
if (!(res && res.length > 0)) return if (!(res && res.length > 0)) return
const data = res[0] const data = res[0]
this.name = data.name this.name = data.name
this.addr = data.addr this.addr = data.addr
}, },
methods: { methods: {
...@@ -67,6 +67,16 @@ ...@@ -67,6 +67,16 @@
uni.navigateTo({ uni.navigateTo({
url url
}) })
},
async logout() {
await uni.$u.request.graphql({
type: 'mutation',
name: 'ydn_logout'
})
uni.redirectTo({
url: `/`
})
} }
} }
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!