chore: 更新环境变量和前端文本内容

修改后端端口号和JWT密钥配置
更新前端标题和品牌名称为"道友"
调整前端环境变量配置
This commit is contained in:
2025-08-28 23:08:20 +08:00
parent 8dde600d28
commit f05eb0aeab
6 changed files with 19 additions and 6 deletions

View File

@ -1,7 +1,7 @@
RUST_LOG=info,udmin=debug RUST_LOG=info,udmin=debug
APP_ENV=development APP_ENV=development
APP_HOST=0.0.0.0 APP_HOST=0.0.0.0
APP_PORT=8080 APP_PORT=9898
DB_URL=mysql://root:123456@127.0.0.1:3306/udmin DB_URL=mysql://root:123456@127.0.0.1:3306/udmin
JWT_SECRET=please_change_me JWT_SECRET=please_change_me
JWT_ISS=udmin JWT_ISS=udmin

View File

@ -3,7 +3,7 @@ APP_ENV=prod
APP_HOST=0.0.0.0 APP_HOST=0.0.0.0
APP_PORT=9898 APP_PORT=9898
DB_URL=mysql://root:109ysy!@149.104.0.182:3306/udmin DB_URL=mysql://root:109ysy!@149.104.0.182:3306/udmin
JWT_SECRET=dev_secret_change_me JWT_SECRET=prod_secret_change_me
JWT_ISS=udmin JWT_ISS=udmin
JWT_ACCESS_EXP_SECS=1800 JWT_ACCESS_EXP_SECS=1800
JWT_REFRESH_EXP_SECS=1209600 JWT_REFRESH_EXP_SECS=1209600

View File

@ -1 +1,14 @@
VITE_API_BASE=http://localhost:8080 # port 端口号
VITE_PORT = 8888
# 浏览器自动打开
VITE_OPEN = true
# 本地环境
ENV = 'development'
# ADMIN 服务地址(开发代理目标)
VITE_ADMIN_PROXY_PATH = http://127.0.0.1:9898
# API 基地址(留空则走相对 /api经由开发代理转发
VITE_API_BASE =

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Udmin Admin</title> <title>道友Admin</title>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>

View File

@ -461,7 +461,7 @@ export default function MainLayout() {
onClick={() => setLeftCollapsed(c => !c)} onClick={() => setLeftCollapsed(c => !c)}
title={leftCollapsed ? '展开菜单' : '收起菜单'} title={leftCollapsed ? '展开菜单' : '收起菜单'}
> >
{leftCollapsed ? 'U' : 'Udmin'} {leftCollapsed ? '道友' : '道友管理系统'}
</div> </div>
<Menu <Menu
mode="inline" mode="inline"

View File

@ -163,7 +163,7 @@ export default function Dashboard() {
<Card style={{ marginTop: 16 }}> <Card style={{ marginTop: 16 }}>
<Typography.Paragraph> <Typography.Paragraph>
使 Udmin 使 Admin
</Typography.Paragraph> </Typography.Paragraph>
</Card> </Card>
</div> </div>