sync: 同步管理前端 v1.0.4 并脱敏

This commit is contained in:
MiFaZhan
2026-10-29 14:43:14 +08:00
parent f754b27ac2
commit 59b307ca75
236 changed files with 5013 additions and 708 deletions
@@ -1,8 +1,16 @@
import { createRouter, createWebHistory } from 'vue-router';
import { startProgress, stopProgress } from '@vben-core/shared/utils';
import { createPinia, setActivePinia } from 'pinia';
import { beforeEach, describe, expect, it, vi } from 'vitest';
vi.mock('@vben-core/shared/utils', async (importOriginal) => {
const actual =
await importOriginal<typeof import('@vben-core/shared/utils')>();
return { ...actual, startProgress: vi.fn(), stopProgress: vi.fn() };
});
import { useTabbarStore } from './tabbar';
describe('useAccessStore', () => {
@@ -321,5 +329,7 @@ describe('useAccessStore', () => {
expect(store.excludeCachedTabs.has('Dashboard')).toBe(false);
expect(store.renderRouteView).toBe(true);
expect(startProgress).toHaveBeenCalledTimes(1);
expect(stopProgress).toHaveBeenCalledTimes(1);
});
});