Skip to content

Commit 03dd07d

Browse files
committed
250922
1 parent 258c165 commit 03dd07d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ src/
241241

242242
1. **访问管理面板**
243243
- 点击右上角盾牌图标
244-
- 输入管理员密码 (默认: `admin123`)
244+
- 输入管理员密码
245245

246246
2. **更新个人信息**
247247
- 进入"个人资料"标签

TROUBLESHOOTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ npm audit fix
159159
1. **检查密码设置**
160160
```javascript
161161
// src/components/Header.jsx 第 44 行
162-
const correctPassword = 'admin123'; // 确认密码
162+
const correctPassword = 'Ranpin@'; // 确认密码
163163
```
164164
165165
2. **检查本地存储**
@@ -185,7 +185,7 @@ location.reload();
185185
```javascript
186186
// 临时调试:在控制台查看密码
187187
// 注意:生产环境中不要这样做
188-
console.log('Password check:', 'your-input' === 'admin123');
188+
console.log('Password check:', 'your-input' === 'Ranpin@');
189189
```
190190
191191
**方案 C: 使用快捷键**

src/components/Header.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const Header = ({ activeSection, setActiveSection, onOpenAdmin }) => {
7575
// 处理管理员登录
7676
const handleAdminLogin = () => {
7777
// 简单的密码验证,你可以根据需要修改密码
78-
const correctPassword = 'admin123'; // 建议修改为更安全的密码
78+
const correctPassword = 'Ranpin@'; // 建议修改为更安全的密码
7979

8080
if (adminPassword === correctPassword) {
8181
setIsAdminMode(true);

0 commit comments

Comments
 (0)