diff --git a/test/vitest/__tests__/components/common/VnLog.spec.js b/test/vitest/__tests__/components/common/VnLog.spec.js index 48785a800..5d3af55f4 100644 --- a/test/vitest/__tests__/components/common/VnLog.spec.js +++ b/test/vitest/__tests__/components/common/VnLog.spec.js @@ -10,11 +10,7 @@ describe('VnLog', () => { model: "Claim", }, }).vm; - vi.mock('vue-router', () => ({ - useRoute: ()=>{ - return {params: {id: 1}} - }, - })); + vm.route = {params: {id: 1}} }); afterEach(() => {