From 877722e08ae42cddc4048578561b8e8999523e0d Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期四, 13 二月 2025 14:43:43 +0800
Subject: [PATCH] #
---
rsf-admin/src/page/settings/BaseSettings.jsx | 25 ++++++++++++++++++-------
1 files changed, 18 insertions(+), 7 deletions(-)
diff --git a/rsf-admin/src/page/settings/BaseSettings.jsx b/rsf-admin/src/page/settings/BaseSettings.jsx
index 775e0d5..de2e62a 100644
--- a/rsf-admin/src/page/settings/BaseSettings.jsx
+++ b/rsf-admin/src/page/settings/BaseSettings.jsx
@@ -17,6 +17,7 @@
MenuItem,
FormHelperText,
CircularProgress,
+ LinearProgress,
} from '@mui/material';
import { updateUserInfo } from '@/api/auth';
import avatar from '/avatar.jpg'
@@ -79,13 +80,23 @@
}
return (
- <Box
- sx={{
- p: 3,
- flex: 1,
- overflow: 'auto',
- }}
- >
+ <Box sx={{
+ position: 'relative',
+ p: 3,
+ flex: 1,
+ overflow: 'auto',
+ }}>
+ {!userInfo && (
+ <LinearProgress
+ sx={{
+ height: "2px",
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ right: 0,
+ }}
+ />
+ )}
{/* https://github.com/themeselection/materio-mui-nextjs-admin-template-free/blob/main/javascript-version/src/views/account-settings/account/AccountDetails.jsx */}
<form onSubmit={handleSubmit(onSubmit)} noValidate>
<Stack
--
Gitblit v1.9.1