From fddaea0e7b87924bcf76dd369c19d8c68648019f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Fri, 9 Aug 2024 15:28:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=87=8D=E5=A4=8D=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=20=20=E5=8A=A0=E4=BA=86=E8=8A=82=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 -- framework/11-api.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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