feat: 区别不同的小程序的缓存问题

This commit is contained in:
2025-12-15 16:26:45 +08:00
parent 09452bf600
commit a3c363cbc9
8 changed files with 43 additions and 16 deletions

View File

@@ -1,3 +1,4 @@
import { removeStorageSyncToken } from "@/constant/token";
import request from "../base/request";
const wxLogin = (args) => {
@@ -8,7 +9,7 @@ const wxLogin = (args) => {
},
};
uni.setStorageSync("token", "");
removeStorageSyncToken();
return request.post("/auth/oauth2/token", args, config);
};