fix: 修复 staticcheck 和优化前端构建

- 修复所有 Yoda 条件错误 (ST1017)
- 修复 error 格式错误 (ST1005)
- 修复不必要的 blank identifier (QF1001)
- 移除 tsc 重复编译,减少内存使用
- monaco-editor 改为动态导入
This commit is contained in:
2026-04-20 08:26:42 +08:00
parent 37852b0a15
commit 5563d0d430
7 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -283,7 +283,7 @@ func (service sessionService) Create(clientIp, assetId, mode string, user *model
if err != nil {
return nil, err
}
if "true" == attr[guacamole.EnableDrive] {
if attr[guacamole.EnableDrive] == "true" {
fileSystem = "1"
storageId = attr[guacamole.DrivePath]
if storageId == "" {