From 2f0fa3545b539e8b6f952ea82a1ca2350c64a0e8 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期二, 22 四月 2025 17:28:48 +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