diff --git a/src/api/user.ts b/src/api/user.ts index acbca22..2bfaa87 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -143,6 +143,20 @@ const UserAPI = { method: "DELETE", }); }, + + /** + * 重置用户密码 + * + * @param userId 用户ID + * @param password 新密码 + */ + resetPassword(userId: number | string, password: string) { + return request({ + url: `${USER_BASE_URL}/${userId}/password/reset`, + method: "PUT", + data: { password }, + }); + }, }; export default UserAPI; diff --git a/src/layouts/default.vue b/src/layouts/default.vue index a5deb4a..e759cce 100644 --- a/src/layouts/default.vue +++ b/src/layouts/default.vue @@ -4,13 +4,6 @@ import { storeToRefs } from "pinia"; const themeStore = useThemeStore(); const { theme, themeVars } = storeToRefs(themeStore); - -// 获取系统状态栏高度 -const statusBarHeight = ref(0); -onMounted(() => { - const systemInfo = uni.getSystemInfoSync(); - statusBarHeight.value = systemInfo.statusBarHeight || 0; -}); - - diff --git a/src/layouts/tabbar.vue b/src/layouts/tabbar.vue index 5cd071d..fc73a18 100644 --- a/src/layouts/tabbar.vue +++ b/src/layouts/tabbar.vue @@ -1,16 +1,8 @@