多次请求处理

This commit is contained in:
GaoHao
2024-08-09 14:01:02 +08:00
parent bf5460c304
commit c83aa0b4c4
5 changed files with 29 additions and 35 deletions

View File

@@ -53,7 +53,10 @@
},
methods: {
userlogin() {
console.log(333)
if (!uni.cache.get('token')) {
// this.$store.dispatch("loginEvent"); //获取shapid
uni.login({
provider: 'weixin',
success: (data) => {
@@ -76,7 +79,7 @@
fail: (err) => {}
});
},
})
})
}
}
}