This commit is contained in:
2026-02-19 22:51:23 +08:00
parent e26ba12150
commit ca0dd554d3
3 changed files with 29 additions and 28 deletions

View File

@@ -63,12 +63,12 @@ class AuthSeeder extends Seeder
'parent_id' => 0, 'parent_id' => 0,
'path' => '/home', 'path' => '/home',
'component' => null, 'component' => null,
'meta' => json_encode([ 'meta' => [
'icon' => 'Dashboard', 'icon' => 'Dashboard',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
'affix' => true, 'affix' => true,
]), ],
'sort' => 1, 'sort' => 1,
'status' => 1, 'status' => 1,
], ],
@@ -80,12 +80,12 @@ class AuthSeeder extends Seeder
'parent_id' => 0, // 稍后更新为首页菜单的ID 'parent_id' => 0, // 稍后更新为首页菜单的ID
'path' => '/dashboard', 'path' => '/dashboard',
'component' => 'home/index', 'component' => 'home/index',
'meta' => json_encode([ 'meta' => [
'icon' => 'DataLine', 'icon' => 'DataLine',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
'affix' => true, 'affix' => true,
]), ],
'sort' => 1, 'sort' => 1,
'status' => 1, 'status' => 1,
], ],
@@ -97,11 +97,11 @@ class AuthSeeder extends Seeder
'parent_id' => 0, // 稍后更新为首页菜单的ID 'parent_id' => 0, // 稍后更新为首页菜单的ID
'path' => '/ucenter', 'path' => '/ucenter',
'component' => 'ucenter/index', 'component' => 'ucenter/index',
'meta' => json_encode([ 'meta' => [
'icon' => 'User', 'icon' => 'User',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
]), ],
'sort' => 2, 'sort' => 2,
'status' => 1, 'status' => 1,
], ],
@@ -147,11 +147,11 @@ class AuthSeeder extends Seeder
'parent_id' => 0, 'parent_id' => 0,
'path' => '/auth', 'path' => '/auth',
'component' => null, 'component' => null,
'meta' => json_encode([ 'meta' => [
'icon' => 'User', 'icon' => 'User',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
]), ],
'sort' => 2, 'sort' => 2,
'status' => 1, 'status' => 1,
], ],
@@ -163,11 +163,11 @@ class AuthSeeder extends Seeder
'parent_id' => 0, // 稍后更新为权限菜单的ID 'parent_id' => 0, // 稍后更新为权限菜单的ID
'path' => '/auth/user', 'path' => '/auth/user',
'component' => 'auth/user/index', 'component' => 'auth/user/index',
'meta' => json_encode([ 'meta' => [
'icon' => 'UserOutlined', 'icon' => 'UserOutlined',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
]), ],
'sort' => 1, 'sort' => 1,
'status' => 1, 'status' => 1,
], ],
@@ -256,11 +256,11 @@ class AuthSeeder extends Seeder
'parent_id' => 0, // 稍后更新为权限菜单的ID 'parent_id' => 0, // 稍后更新为权限菜单的ID
'path' => '/auth/role', 'path' => '/auth/role',
'component' => 'auth/role/index', 'component' => 'auth/role/index',
'meta' => json_encode([ 'meta' => [
'icon' => 'UserFilled', 'icon' => 'UserFilled',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
]), ],
'sort' => 2, 'sort' => 2,
'status' => 1, 'status' => 1,
], ],
@@ -338,11 +338,11 @@ class AuthSeeder extends Seeder
'parent_id' => 0, // 稍后更新为权限菜单的ID 'parent_id' => 0, // 稍后更新为权限菜单的ID
'path' => '/auth/permission', 'path' => '/auth/permission',
'component' => 'auth/permission/index', 'component' => 'auth/permission/index',
'meta' => json_encode([ 'meta' => [
'icon' => 'Lock', 'icon' => 'Lock',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
]), ],
'sort' => 3, 'sort' => 3,
'status' => 1, 'status' => 1,
], ],
@@ -409,11 +409,11 @@ class AuthSeeder extends Seeder
'parent_id' => 0, // 稍后更新为权限菜单的ID 'parent_id' => 0, // 稍后更新为权限菜单的ID
'path' => '/auth/department', 'path' => '/auth/department',
'component' => 'auth/department/index', 'component' => 'auth/department/index',
'meta' => json_encode([ 'meta' => [
'icon' => 'OfficeBuilding', 'icon' => 'OfficeBuilding',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
]), ],
'sort' => 4, 'sort' => 4,
'status' => 1, 'status' => 1,
], ],

View File

@@ -56,11 +56,11 @@ class SystemSeeder extends Seeder
'parent_id' => 0, 'parent_id' => 0,
'path' => '/system', 'path' => '/system',
'component' => null, 'component' => null,
'meta' => json_encode([ 'meta' => [
'icon' => 'Setting', 'icon' => 'Setting',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
]), ],
'sort' => 3, 'sort' => 3,
'status' => 1, 'status' => 1,
], ],
@@ -72,11 +72,11 @@ class SystemSeeder extends Seeder
'parent_id' => 0, // 稍后更新为系统菜单的ID 'parent_id' => 0, // 稍后更新为系统菜单的ID
'path' => '/system/setting', 'path' => '/system/setting',
'component' => 'system/setting/index', 'component' => 'system/setting/index',
'meta' => json_encode([ 'meta' => [
'icon' => 'SettingFilled', 'icon' => 'SettingFilled',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
]), ],
'sort' => 1, 'sort' => 1,
'status' => 1, 'status' => 1,
], ],
@@ -144,11 +144,11 @@ class SystemSeeder extends Seeder
'parent_id' => 0, // 稍后更新为系统菜单的ID 'parent_id' => 0, // 稍后更新为系统菜单的ID
'path' => '/system/log', 'path' => '/system/log',
'component' => 'system/log/index', 'component' => 'system/log/index',
'meta' => json_encode([ 'meta' => [
'icon' => 'DocumentCopy', 'icon' => 'DocumentCopy',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
]), ],
'sort' => 2, 'sort' => 2,
'status' => 1, 'status' => 1,
], ],
@@ -205,11 +205,11 @@ class SystemSeeder extends Seeder
'parent_id' => 0, // 稍后更新为系统菜单的ID 'parent_id' => 0, // 稍后更新为系统菜单的ID
'path' => '/system/dictionary', 'path' => '/system/dictionary',
'component' => 'system/dictionary/index', 'component' => 'system/dictionary/index',
'meta' => json_encode([ 'meta' => [
'icon' => 'Notebook', 'icon' => 'Notebook',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
]), ],
'sort' => 3, 'sort' => 3,
'status' => 1, 'status' => 1,
], ],
@@ -277,11 +277,11 @@ class SystemSeeder extends Seeder
'parent_id' => 0, // 稍后更新为系统菜单的ID 'parent_id' => 0, // 稍后更新为系统菜单的ID
'path' => '/system/task', 'path' => '/system/task',
'component' => 'system/task/index', 'component' => 'system/task/index',
'meta' => json_encode([ 'meta' => [
'icon' => 'Timer', 'icon' => 'Timer',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
]), ],
'sort' => 4, 'sort' => 4,
'status' => 1, 'status' => 1,
], ],
@@ -382,11 +382,11 @@ class SystemSeeder extends Seeder
'parent_id' => 0, // 稍后更新为系统菜单的ID 'parent_id' => 0, // 稍后更新为系统菜单的ID
'path' => '/system/city', 'path' => '/system/city',
'component' => 'system/city/index', 'component' => 'system/city/index',
'meta' => json_encode([ 'meta' => [
'icon' => 'EnvironmentOutlined', 'icon' => 'EnvironmentOutlined',
'hidden' => false, 'hidden' => false,
'hiddenBreadcrumb' => false, 'hiddenBreadcrumb' => false,
]), ],
'sort' => 5, 'sort' => 5,
'status' => 1, 'status' => 1,
], ],

View File

@@ -108,6 +108,7 @@ const layoutStore = useLayoutStore()
const showTags = ref(true) const showTags = ref(true)
const selectedTag = ref(null) const selectedTag = ref(null)
const visitedViews = computed(() => layoutStore.viewTags) const visitedViews = computed(() => layoutStore.viewTags)
console.log(layoutStore.viewTags)
// 右键菜单状态 // 右键菜单状态
const contextMenu = ref({ const contextMenu = ref({
visible: false, visible: false,