scan the QR code to log in on the WeChat public account

This commit is contained in:
landaiqing
2024-08-15 23:57:12 +08:00
parent cab3b1ee96
commit 3140eaca99
11 changed files with 432 additions and 45 deletions

View File

@@ -14,7 +14,7 @@ class Request {
this.instance.interceptors.request.use(
(config) => {
const user = useStore().user;
const token: string | undefined = user.getUser()?.accessToken;
const token: string | undefined = user.user.accessToken;
if (token) {
config.headers.Authorization = `${import.meta.env.VITE_APP_TOKEN_KEY} ${token}`;
}