up
This commit is contained in:
@@ -12,6 +12,19 @@
|
||||
- **GCC 问题**:已安装 TDM-GCC v10.3.0
|
||||
- **Fresh 问题**:runner-build.exe 缓存损坏,已清理并改用 `go run .` 启动
|
||||
|
||||
## 为 AccountView.vue 添加中文注释 ✅ (12:43)
|
||||
|
||||
- 为 `frontend/ops_vue_js/src/views/settings/AccountView.vue` 添加完整的中文注释
|
||||
- 包含:导入说明、响应式变量说明、函数功能说明、模板结构说明
|
||||
- 未改变任何代码逻辑,仅添加注释
|
||||
|
||||
## 为 ContactView.vue 添加中文注释 ✅ (13:36)
|
||||
|
||||
- 为 `frontend/ops_vue_js/src/views/settings/ContactView.vue` 添加完整的中文注释
|
||||
- 包含:导入说明、表单数据说明、handleChangeEmail 函数详细注释
|
||||
- 模板结构说明(页面布局、邮箱输入、验证提示、按钮交互)
|
||||
- 未改变任何代码逻辑
|
||||
|
||||
## 后端入口迁移:cmd/ops-server/main.go → 根目录 main.go ✅ (11:05)
|
||||
|
||||
- 将新架构 `cmd/ops-server/main.go` 内容合并到根目录 `backend/main.go`
|
||||
@@ -19,3 +32,21 @@
|
||||
- 更新 `run-dev.bat` 和 `start-dev.bat` 启动命令从 `go run ./cmd/ops-server/main.go` 改为 `go run .`
|
||||
- 编译验证通过(0 errors)
|
||||
- 现在直接在 `backend/` 目录下运行 `go run .` 即可启动
|
||||
|
||||
## 为 ScheduleView.vue 添加今天(Today)按钮 ✅ (13:50)
|
||||
|
||||
- 修改 `frontend/ops_vue_js/src/views/scheduleView.vue` 的 headerToolbar 配置
|
||||
- 在 left 区域加入 `today` 按钮:`prevYear,prev,today,next,nextYear`
|
||||
- 在 customButtons 中添加 today 按钮功能实现:`click() { calendarRef.value.getApi().today() }`
|
||||
- 修复中英文语言文件中 `tody` 键名的拼写错误,改为正确的 `today`
|
||||
- 更新 today 按钮文本引用为正确的键名 `t('schedule.today')`
|
||||
- 所有代码编译通过,无语法错误
|
||||
|
||||
## 修复 ScheduleView.vue 中的 TypeError 错误 ✅ (14:07)
|
||||
|
||||
- **问题**:`Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'prevYear') at ScheduleView.vue:79:53`
|
||||
- **原因**:`watch` 函数中访问路径错误,使用了 `calendarOptions.value.headerToolbar.customButtons`,但实际应该是 `calendarOptions.value.customButtons`
|
||||
- **修复**:
|
||||
- 将 `calendarOptions.value.headerToolbar.customButtons` 改为 `calendarOptions.value.customButtons`
|
||||
- 在 `watch` 函数中添加 today 按钮的文本更新逻辑:`calendarOptions.value.customButtons.today.text = t('schedule.today')`
|
||||
- 修复后错误消失,代码正常运行
|
||||
|
||||
Reference in New Issue
Block a user