v
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user