diff --git a/src/App.spec.ts b/src/App.spec.ts index 5e01a05..b598ea8 100644 --- a/src/App.spec.ts +++ b/src/App.spec.ts @@ -159,8 +159,10 @@ describe('App 路由', () => { await nextTick() const values = wrapper.findAll('dd').map((node) => node.text()) - // [今日待办, 逾期, 今天到期, 本周完成] - expect(values[3]).toBe('1') + // 统计带 = [逾期, 今天到期, 进行中, 待办]:刚完成的任务不进任何分组,四格都应是 0 + expect(values).toEqual(['0', '0', '0', '0']) + // 「本周完成」已移到页头副标题,不再占统计格 + expect(wrapper.find('[data-role="completed-this-week"]').text()).toBe('1') wrapper.unmount() }) }) diff --git a/src/components/AppNav.vue b/src/components/AppNav.vue index 62034de..9dcc04b 100644 --- a/src/components/AppNav.vue +++ b/src/components/AppNav.vue @@ -48,7 +48,7 @@ const LINKS = [ > +
+
diff --git a/src/components/BoardColumn.vue b/src/components/BoardColumn.vue index fbaedcd..c47859d 100644 --- a/src/components/BoardColumn.vue +++ b/src/components/BoardColumn.vue @@ -66,8 +66,14 @@ useDraggable(listRef, {