From 94a75cd374b597276eff39aa72e13d51fee4499f Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 30 Dec 2024 19:29:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BF=AE=E6=94=B9=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=AE=9D=E8=B4=A6=E5=8F=B7=E5=90=8E=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/httpRequest.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/httpRequest.js b/common/httpRequest.js index 9adb7c2..f3d1c45 100644 --- a/common/httpRequest.js +++ b/common/httpRequest.js @@ -6,6 +6,10 @@ import { function successCallBack(url){ if(url.includes('app/courseCollect/insertCourseCollect')){ cacheClear('chasingDrama') + return + } + if(url.includes('app/user/updateUser') ){ + cacheClear('renwu') } } module.exports = { @@ -79,6 +83,8 @@ module.exports = { success: function(result) { if (result.data.code == 401) { that.logout(); + }else{ + successCallBack(url) } succ.call(self, result.data) },