Version: 0.9.38.dev.260423

后端:
1. 四象限任务新增修改与删除接口——部分更新语义 + 硬删除 + 幂等信息码
- 新增 PUT/task/update:指针字段部分更新(title / priority_group / deadline_at / urgency_threshold_at),优先级 1~4 校验,空更新检测
- 新增 DELETE /task/delete:硬删除,重复删除返回 10003 幂等信息码
- 新增错误码 TaskUpdateNoFields (40063) 与 TaskAlreadyDeleted (10003)

前端:
1. 四象限卡片对接修改与删除
- 任务项重构为三区布局:勾选、内容点击编辑、悬浮删除按钮 - 创建弹窗复用为编辑模式,新增 urgency_threshold_at 字段
- 删除走二次确认弹窗,空状态增加 SVG 插画
2. 今日时间轴微调——色调简化为取模轮换,午休/晚餐改称午间/晚休
This commit is contained in:
Losita
2026-04-23 19:46:33 +08:00
parent 7b37db64eb
commit 53e2602df4
15 changed files with 1388 additions and 490 deletions

View File

@@ -6,6 +6,7 @@ import AssistantView from '@/views/AssistantView.vue'
import DashboardView from '@/views/DashboardView.vue'
import ScheduleView from '@/views/ScheduleView.vue'
import ToolTracePrototypeView from '@/views/ToolTracePrototypeView.vue'
import TaskInteractiveDemo from '@/views/TaskInteractiveDemo.vue'
const router = createRouter({
history: createWebHistory(),
@@ -14,6 +15,11 @@ const router = createRouter({
path: '/',
redirect: '/dashboard',
},
{
path: '/demo-task',
name: 'demo-task',
component: TaskInteractiveDemo,
},
{
path: '/auth',
name: 'auth',
@@ -57,8 +63,6 @@ const router = createRouter({
router.beforeEach((to) => {
const authStore = useAuthStore()
// 1. 进入受保护页面前,必须先确认 access token 是否存在。
// 2. 当前阶段只做“是否登录”的前端兜底,不在这里做 token 过期解析。
if (to.meta.requiresAuth && !authStore.isAuthenticated) {
return {
name: 'auth',