diff --git a/App.vue b/App.vue index 93723c0..fee1d6b 100644 --- a/App.vue +++ b/App.vue @@ -53,10 +53,8 @@ }, methods: { userlogin() { - console.log(333) if (!uni.cache.get('token')) { // this.$store.dispatch("loginEvent"); //获取shapid - uni.login({ provider: 'weixin', success: (data) => { diff --git a/framework/11-api.js b/framework/11-api.js index 2a97e5b..00cdb1f 100644 --- a/framework/11-api.js +++ b/framework/11-api.js @@ -113,7 +113,7 @@ async function request(options) { // // }, 1000) // } // }) - uni.$u.debounce(store.dispatch("loginEvent"), 1000); //获取shapid + uni.$u.throttle(store.dispatch("loginEvent"), 1000); //获取shapid } else if (res.code == 482) { let nowTime = new Date() / 1000 | 0