From 51eeb5d0acba9b783e5c939c1fad4beffcaef8b2 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期二, 29 四月 2025 09:22:29 +0800 Subject: [PATCH] fix:修改测试环境 --- src/utils/auth.js | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/utils/auth.js b/src/utils/auth.js index 069f714..f275077 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -7,7 +7,6 @@ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ export function getToken() { - return localStorage.getItem('token') } @@ -18,3 +17,7 @@ export function removeToken() { return localStorage.removeItem('token') } + +export function getUserType() { + return localStorage.getItem('userType') +} \ No newline at end of file -- Gitblit v1.9.3