Trim non core admin route entries
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue';
|
||||
import { computed, defineAsyncComponent } from 'vue';
|
||||
|
||||
import { ZqDialog } from '#/components/zq-dialog';
|
||||
import { $t } from '#/locales';
|
||||
import OrgChartPanel from '#/views/_core/org-chart/modules/OrgChartPanel.vue';
|
||||
|
||||
defineOptions({
|
||||
name: 'UserProfileDialog',
|
||||
});
|
||||
|
||||
const OrgChartPanel = defineAsyncComponent(
|
||||
() => import('#/views/_core/org-chart/modules/OrgChartPanel.vue'),
|
||||
);
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: boolean;
|
||||
userId: string;
|
||||
|
||||
@@ -27,7 +27,6 @@ const modules = import.meta.glob([
|
||||
'./langs/*/apiToken.json',
|
||||
'./langs/*/authentication.json',
|
||||
'./langs/*/common.json',
|
||||
'./langs/*/loginLog.json',
|
||||
'./langs/*/menu.json',
|
||||
'./langs/*/menu-title.json',
|
||||
'./langs/*/message.json',
|
||||
|
||||
@@ -22,19 +22,11 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
|
||||
'../views/_core/authentication/login.vue',
|
||||
'../views/_core/authentication/oauth-callback.vue',
|
||||
'../views/_core/control-center/index.vue',
|
||||
'../views/_core/dept/index.vue',
|
||||
'../views/_core/dict/index.vue',
|
||||
'../views/_core/fallback/**/*.vue',
|
||||
'../views/_core/file-manager/index.vue',
|
||||
'../views/_core/login-log/index.vue',
|
||||
'../views/_core/menu/index.vue',
|
||||
'../views/_core/message/index.vue',
|
||||
'../views/_core/org-chart/index.vue',
|
||||
'../views/_core/post/index.vue',
|
||||
'../views/_core/permission/index.vue',
|
||||
'../views/_core/role/index.vue',
|
||||
'../views/_core/system-config/index.vue',
|
||||
'../views/_core/ui-config/index.vue',
|
||||
'../views/_core/user/index.vue',
|
||||
'../views/ai-platform/agent/editor/index.vue',
|
||||
'../views/ai-platform/agent/index.vue',
|
||||
|
||||
@@ -43,19 +43,11 @@ const componentKeys: string[] = Object.keys(
|
||||
'../../views/_core/authentication/login.vue',
|
||||
'../../views/_core/authentication/oauth-callback.vue',
|
||||
'../../views/_core/control-center/index.vue',
|
||||
'../../views/_core/dept/index.vue',
|
||||
'../../views/_core/dict/index.vue',
|
||||
'../../views/_core/fallback/**/*.vue',
|
||||
'../../views/_core/file-manager/index.vue',
|
||||
'../../views/_core/login-log/index.vue',
|
||||
'../../views/_core/menu/index.vue',
|
||||
'../../views/_core/message/index.vue',
|
||||
'../../views/_core/org-chart/index.vue',
|
||||
'../../views/_core/post/index.vue',
|
||||
'../../views/_core/permission/index.vue',
|
||||
'../../views/_core/role/index.vue',
|
||||
'../../views/_core/system-config/index.vue',
|
||||
'../../views/_core/ui-config/index.vue',
|
||||
'../../views/_core/user/index.vue',
|
||||
'../../views/ai-platform/agent/editor/index.vue',
|
||||
'../../views/ai-platform/agent/index.vue',
|
||||
|
||||
Reference in New Issue
Block a user