From b9a26af5b08d3d92a6c38fd90e023bc4706f19eb Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 29 Sep 2025 14:22:30 +0800
Subject: [PATCH] feat:一些基础文件格式化处理
---
src/utils/auth/index.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/utils/auth/index.js b/src/utils/auth/index.js
index dd69248..73400ed 100644
--- a/src/utils/auth/index.js
+++ b/src/utils/auth/index.js
@@ -1,15 +1,15 @@
const TokenKey = "admin-token"
const TokenPrefix = "Bearer "
-function isLogin() {
+function isLogin () {
return !!uni.getStorageSync(TokenKey)
}
-function getToken() {
+function getToken () {
return uni.getStorageSync(TokenKey)
}
-function setToken(token) {
+function setToken (token) {
uni.setStorageSync(TokenKey, token)
}
-function clearToken() {
+function clearToken () {
uni.removeStorageSync(TokenKey)
}
export { clearToken, getToken, isLogin, setToken, TokenPrefix }
--
Gitblit v1.9.3