style: 全站接入深色主题,按新规则整改界面取值

This commit is contained in:
2026-11-20 09:42:47 +08:00
parent 15d84decfb
commit 7627f0651d
32 changed files with 960 additions and 267 deletions
+2 -2
View File
@@ -284,14 +284,14 @@ describe('StartTask.vue', () => {
it('confirmAbort shows backend message when session has fragments and stays on page', async () => {
vi.mocked(abortSession).mockRejectedValue({
code: 400,
message: '这次学习已经产生了学习残片,不能按误操作结束了哦',
message: '这次学习已经产生了知识碎片,不能按误操作结束了哦',
} as any)
const wrapper = await mountTask()
wrapper.vm.abortConfirmation = '我误操作导致开启了本次学习'
await wrapper.vm.confirmAbort()
expect(ElMessage.error).toHaveBeenCalledWith('这次学习已经产生了学习残片,不能按误操作结束了哦')
expect(ElMessage.error).toHaveBeenCalledWith('这次学习已经产生了知识碎片,不能按误操作结束了哦')
expect(router.currentRoute.value.path).not.toBe('/study')
wrapper.unmount()
})