diff --git a/.env.development b/.env.development index 18b9f03..3300079 100644 --- a/.env.development +++ b/.env.development @@ -13,7 +13,7 @@ VITE_API_BASE_URL='http://127.0.0.1:8080' VITE_TITLE_NAME='五味子云相册' # token key -VITE_APP_TOKEN_KEY='schisandra' +VITE_APP_TOKEN_KEY='Bearer' # the websocket url VITE_WEB_SOCKET_URL='ws://127.0.0.1:3010/wx/socket' diff --git a/.env.production b/.env.production index 21e177d..5e6a961 100644 --- a/.env.production +++ b/.env.production @@ -12,7 +12,7 @@ VITE_API_BASE_URL='http://1.95.0.111:5050' VITE_TITLE_NAME='五味子云相册' # token key -VITE_APP_TOKEN_KEY='schisandra' +VITE_APP_TOKEN_KEY='Bearer' # the websocket url VITE_WEB_SOCKET_URL='ws://127.0.0.1:3010/wx/socket' diff --git a/eslint.config.js b/eslint.config.js index af9e7d4..b40a888 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -14,7 +14,9 @@ export default [ { rules: { semi: "error", - "@typescript-eslint/no-explicit-any": "off" + "@typescript-eslint/no-explicit-any": "off", + // "no-unused-vars": "off", + // "@typescript-eslint/no-unused-vars": ["off"], } } ]; diff --git a/src/api/user/index.ts b/src/api/user/index.ts index c0d41c9..5e18300 100644 --- a/src/api/user/index.ts +++ b/src/api/user/index.ts @@ -4,8 +4,19 @@ import {service} from "@/utils/alova/service.ts"; export const getUserInfo = () => { return service.Get('/api/auth/user/List', { meta: { - ignoreToken: true + ignoreToken: false }, }); }; + +export const refreshToken = (refreshToken: string) => { + return service.Get('/api/auth/token/refresh', { + params: { + refresh_token: refreshToken + }, + meta: { + authRole: 'refreshToken' + } + }); +}; diff --git a/src/components/BoxDog/index.scss b/src/components/BoxDog/index.scss index dff7f04..b35adc9 100644 --- a/src/components/BoxDog/index.scss +++ b/src/components/BoxDog/index.scss @@ -33,6 +33,9 @@ body { justify-content: center; width: 600px; height: 420px; + @media screen and (max-width: 768px) { + display: none; + } } * { diff --git a/src/layout/default/DefaultLayout.vue b/src/layout/default/DefaultLayout.vue index f6c59a9..4897802 100644 --- a/src/layout/default/DefaultLayout.vue +++ b/src/layout/default/DefaultLayout.vue @@ -1,6 +1,6 @@