fix: 修复homePath的路径 (#8110)
* fix: 修复homePath的路径 * fix: 单元测试数据 * chore: 单元测试快照数据 --------- Co-authored-by: Jin Mao <50581550+jinmao88@users.noreply.github.com>
This commit is contained in:
@@ -26,7 +26,7 @@ export const MOCK_USERS: UserInfo[] = [
|
||||
realName: 'Admin',
|
||||
roles: ['admin'],
|
||||
username: 'admin',
|
||||
homePath: '/workspace',
|
||||
homePath: '/dashboard/workspace',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
@@ -34,7 +34,7 @@ export const MOCK_USERS: UserInfo[] = [
|
||||
realName: 'Jack',
|
||||
roles: ['user'],
|
||||
username: 'jack',
|
||||
homePath: '/analytics',
|
||||
homePath: '/dashboard/analytics',
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ exports[`defaultPreferences immutability test > should not modify the config obj
|
||||
"contentPaddingRight": 0,
|
||||
"contentPaddingTop": 0,
|
||||
"defaultAvatar": "https://unpkg.com/@vbenjs/static-source@0.1.7/source/avatar-v1.webp",
|
||||
"defaultHomePath": "/analytics",
|
||||
"defaultHomePath": "/dashboard",
|
||||
"dynamicTitle": true,
|
||||
"enableCheckUpdates": true,
|
||||
"enableCopyPreferences": true,
|
||||
@@ -66,6 +66,8 @@ exports[`defaultPreferences immutability test > should not modify the config obj
|
||||
"logo": {
|
||||
"enable": true,
|
||||
"fit": "contain",
|
||||
"logoMode": "icon",
|
||||
"showText": true,
|
||||
"source": "https://unpkg.com/@vbenjs/static-source@0.1.7/source/logo-v1.webp",
|
||||
},
|
||||
"navigation": {
|
||||
|
||||
@@ -17,7 +17,7 @@ const defaultPreferences: Preferences = {
|
||||
contentPaddingTop: 0,
|
||||
defaultAvatar:
|
||||
'https://unpkg.com/@vbenjs/static-source@0.1.7/source/avatar-v1.webp',
|
||||
defaultHomePath: '/dashboard/analytics',
|
||||
defaultHomePath: '/dashboard',
|
||||
dynamicTitle: true,
|
||||
enableCheckUpdates: true,
|
||||
enableCopyPreferences: true,
|
||||
|
||||
Reference in New Issue
Block a user