feat: Oauth update

This commit is contained in:
landaiqing
2024-05-27 23:42:30 +08:00
parent 90a1c1f3ce
commit ce246ae2fe
8 changed files with 64 additions and 55 deletions

View File

@@ -1,9 +1,12 @@
/** @format */
import Request from "./request";
import { handleLocalforage } from "@/utils/localforage";
import localforage from "localforage";
const token = handleLocalforage.getItem("token").then();
async function getToken() {
return await localforage.getItem("token");
}
const token = await getToken();
const web: Request = new Request({
baseURL: import.meta.env.VITE_APP_BASE_API,
headers: {