fix: 修复页面间状态丢失问题并优化选择页面
- 修复选择审批人后再选择抄送人导致状态丢失的问题 - 使用独立的 sessionStorage key (selectedApprovers, selectedCc) - 组件每次挂载时从 sessionStorage 恢复状态 - 只在提交/保存成功后清除 sessionStorage - 优化人员选择页面布局和样式 - 更新 CLAUDE.md 文档记录问题和解决方案 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+37
-26
@@ -2,38 +2,53 @@
|
||||
# 使用方法: frpc -c frpc-dev.ini
|
||||
|
||||
[common]
|
||||
# ======== 请修改以下配置 ========
|
||||
server_addr = your-frp-server.com
|
||||
server_port = 7000
|
||||
token = your-frp-token
|
||||
# ================================
|
||||
serverAddr = "8.152.213.143"
|
||||
serverPort = 7000
|
||||
|
||||
# 开发环境 API 代理
|
||||
[x-server-api-dev]
|
||||
type = http
|
||||
local_ip = 127.0.0.1
|
||||
local_port = 8080
|
||||
custom_domains = api-dev.x-server.your-domain.com
|
||||
auth.method = "token"
|
||||
auth.token = "6dEjuXXMpJSdBbAQDRzECHmAbeGd"
|
||||
|
||||
# X-Server 开发环境代理
|
||||
[x-server-dev]
|
||||
type = "http"
|
||||
localIP = "127.0.0.1"
|
||||
localPort = 80
|
||||
|
||||
# 自定义域名方式(不需要 frps 配置 subdomainHost)
|
||||
customDomains = ["xsm.dev.hnxinyouhe.com"]
|
||||
|
||||
# 启用加密和压缩
|
||||
use_encryption = true
|
||||
use_compression = true
|
||||
transport.useEncryption = true
|
||||
transport.useCompression = true
|
||||
|
||||
# 健康检查
|
||||
health_check_type = http
|
||||
health_check_url = /health
|
||||
health_check_interval_s = 30
|
||||
health_check_max_failed = 3
|
||||
healthCheck.type = "tcp"
|
||||
healthCheck.intervalS = 30
|
||||
healthCheck.maxFailed = 3
|
||||
|
||||
# ========================================
|
||||
# 配置说明
|
||||
# ========================================
|
||||
#
|
||||
# 1. 修改 server_addr 为你的 frp 服务器地址
|
||||
# 2. 修改 token 为你的 frp 服务器 token
|
||||
# 3. 修改 custom_domains 为你的开发域名
|
||||
# 4. 确保 local_port (8080) 与 OpenResty 配置一致
|
||||
# 5. 将 api-dev.x-server.your-domain.com 的 DNS 指向 frp 服务器
|
||||
# frps 服务器配置:
|
||||
# - 地址: 8.152.213.143:7000
|
||||
# - HTTP 端口: 8080
|
||||
# - HTTPS 端口: 8443
|
||||
#
|
||||
# 访问方式(二选一):
|
||||
#
|
||||
# 方式1: 使用 subdomain(推荐,无需 DNS 配置)
|
||||
# 访问: http://x-server-dev.8.152.213.143:8080
|
||||
#
|
||||
# 方式2: 使用自定义域名
|
||||
# 1. 修改 customDomains
|
||||
# 2. 将域名 A 记录指向 8.152.213.143
|
||||
# 3. 访问: http://your-domain.com
|
||||
#
|
||||
# 本地服务端口:
|
||||
# - OpenResty: 80 (frpc 指向这里)
|
||||
# - 前端: http://127.0.0.1:5173
|
||||
# - 后端: http://127.0.0.1:8787
|
||||
#
|
||||
# 启动命令:
|
||||
# frpc -c frpc-dev.ini
|
||||
@@ -41,7 +56,3 @@ health_check_max_failed = 3
|
||||
# 后台运行:
|
||||
# nohup frpc -c frpc-dev.ini > /dev/null 2>&1 &
|
||||
#
|
||||
# 使用 systemd 管理 (推荐):
|
||||
# sudo cp frpc-dev.service /etc/systemd/system/
|
||||
# sudo systemctl enable frpc-dev
|
||||
# sudo systemctl start frpc-dev
|
||||
|
||||
Reference in New Issue
Block a user