20260915221013
This commit is contained in:
1 parent
1f56cc3efb
commit
dce29f250e
54 files changed
+3732
-574
No files matched your search
@@ -85,7 +85,7 @@ describe('路由守卫 权限加载(三场景)', () => {
|
||||
JSON.stringify({ userInfo: { orgId: 'ORG', account: 'u1' } }),
|
||||
)
|
||||
// 用 createTestPinia(内部已 install,persist 插件真实注册),等价于刷新页面
|
||||
const pinia = createTestPinia()
|
||||
createTestPinia()
|
||||
const a = useAuthStore() // 首次创建
|
||||
await a.$hydrate() // 显式从 localStorage 恢复(等价于刷新页面)
|
||||
expect(useAuthStore().isAuthenticated).toBe(true)
|
||||
|
||||
Reference in new issue
Block a user