From 3f798d6f31282420a4785e850278aee3c15de171 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期二, 09 七月 2024 17:57:50 +0800 Subject: [PATCH] fix:首页样式更新 --- utils/status.js | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/utils/status.js b/utils/status.js index 08ae5c6..e0d7192 100644 --- a/utils/status.js +++ b/utils/status.js @@ -5,7 +5,8 @@ SuccessRedirect, FailRedirect, customerIdKey, - nameKey + nameKey, + userId } from './status.config.js'; const SetStorage = (key) => (value) => uni.setStorageSync(key, value); @@ -15,6 +16,7 @@ export const setUsernameKey = SetStorage(UsernameKey); export const setCustomerId = SetStorage(customerIdKey); export const setName = SetStorage(nameKey) +export const setUserId = SetStorage(userId) export const redirectHome = (path) => { uni.switchTab({ url: path || SuccessRedirect -- Gitblit v1.9.1