This commit is contained in:
zmr900709
2020-06-22 17:45:39 +08:00
parent d384e6d4e7
commit 7c62d68806
3 changed files with 33 additions and 5 deletions

View File

@@ -96,7 +96,7 @@
},
onLoad() {
// 数据的请求
this.apiwelcome()
this.apiwelcome()
},
methods: {
apiwelcome() {
@@ -155,8 +155,13 @@
data: res.data,
success: function() {
console.log('success');
// 跳转首页
uni.switchTab({
url: '/pages/index/index'
});
}
});
// 存储接口请求所需token
uni.setStorage({
key: 'token',