feat(config): 添加服务器URL配置并优化文件预览功能

- 在 application.yml 中添加 server-url 配置项,支持各环境profile覆盖
- 在 application-dev.yml 和 application-prod.yml 中分别配置对应的服务器地址
- 移除 @flyfish-group/file-viewer-web 依赖,改用 iframe 方式实现文件预览
- 更新 drawingDesign、installFeedback、layout 和 manuals 等模块的预览逻辑
- 在 ServerConfig 中实现优先使用配置的 server-url 的逻辑
- 移除相关的 viewerCtrl 控制器和生命周期钩子函数
This commit is contained in:
jhd
2026-07-06 15:40:56 +08:00
parent 5544056833
commit 8bf4a6d861
8 changed files with 35 additions and 100 deletions

View File

@@ -1,3 +1,8 @@
--- # 本地开发环境覆盖
ruoyi:
profile: /home/wy/oa/uploadPath
server-url: http://localhost:8080
--- # 监控中心配置
spring.boot.admin.client:
# 增加客户端开关

View File

@@ -1,3 +1,7 @@
--- # 生产环境覆盖
ruoyi:
profile: /home/wy/oa/uploadPath
server-url: http://49.232.154.205:8080
--- # 监控中心配置
spring.boot.admin.client:

View File

@@ -12,9 +12,10 @@ ruoyi:
addressEnabled: true
# 缓存懒加载
cacheLazy: false
# 文件路径
# 服务地址(各环境 profile 覆盖此值)
server-url: http://localhost:8080
# 文件路径(各环境 profile 覆盖此值)
profile: /home/wy/oa/uploadPath
# profile: F:\work\fad_oa系统\fad_oa\temp
captcha:
# 页面 <参数设置> 可开启关闭 验证码校验