refactor: '/@/' ==> '@/' and '/#/ '==> '#/' (#3329)

* refactor: /@/ ==> @/

* chore: '/@/' ==> '@/' and '/#/ '==> '#/'

* fix: lint:prettier
This commit is contained in:
xingyu
2023-11-24 10:32:04 +08:00
committed by GitHub
parent 3f65baf503
commit 4d2fb0cb6f
127 changed files with 807 additions and 827 deletions

View File

@@ -57,7 +57,7 @@
"stylelint.enable": true, "stylelint.enable": true,
"stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"], "stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"],
"path-intellisense.mappings": { "path-intellisense.mappings": {
"/@/": "${workspaceRoot}/src" "@/": "${workspaceRoot}/src"
}, },
"[javascriptreact]": { "[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"

View File

@@ -45,16 +45,6 @@ function defineApplicationConfig(defineOptions: DefineOptions = {}) {
find: 'vue-i18n', find: 'vue-i18n',
replacement: 'vue-i18n/dist/vue-i18n.cjs.js', replacement: 'vue-i18n/dist/vue-i18n.cjs.js',
}, },
// /@/xxxx => src/xxxx
{
find: /\/@\//,
replacement: pathResolve('src') + '/',
},
// /#/xxxx => types/xxxx
{
find: /\/#\//,
replacement: pathResolve('types') + '/',
},
// @/xxxx => src/xxxx // @/xxxx => src/xxxx
{ {
find: /@\//, find: /@\//,

View File

@@ -1,5 +1,5 @@
// Interface data format used to return a unified format // Interface data format used to return a unified format
import { ResultEnum } from '/@/enums/httpEnum'; import { ResultEnum } from '@/enums/httpEnum';
export function resultSuccess<T = Recordable>(result: T, { message = 'ok' } = {}) { export function resultSuccess<T = Recordable>(result: T, { message = 'ok' } = {}) {
return { return {

View File

@@ -1,4 +1,4 @@
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '@/utils/http/axios';
import { GetAccountInfoModel } from './model/accountModel'; import { GetAccountInfoModel } from './model/accountModel';
enum Api { enum Api {

View File

@@ -1,5 +1,5 @@
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '@/utils/http/axios';
import { AreaModel, AreaParams } from '/@/api/demo/model/areaModel'; import { AreaModel, AreaParams } from '@/api/demo/model/areaModel';
enum Api { enum Api {
AREA_RECORD = '/cascader/getAreaRecord', AREA_RECORD = '/cascader/getAreaRecord',

View File

@@ -1,4 +1,4 @@
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '@/utils/http/axios';
enum Api { enum Api {
// The address does not exist // The address does not exist

View File

@@ -1,4 +1,4 @@
import { BasicFetchResult } from '/@/api/model/baseModel'; import { BasicFetchResult } from '@/api/model/baseModel';
export interface DemoOptionsItem { export interface DemoOptionsItem {
name: string; name: string;

View File

@@ -1,4 +1,4 @@
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; import { BasicPageParams, BasicFetchResult } from '@/api/model/baseModel';
export type AccountParams = BasicPageParams & { export type AccountParams = BasicPageParams & {
account?: string; account?: string;

View File

@@ -1,4 +1,4 @@
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel'; import { BasicPageParams, BasicFetchResult } from '@/api/model/baseModel';
/** /**
* @description: Request list interface parameters * @description: Request list interface parameters
*/ */

View File

@@ -1,4 +1,4 @@
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '@/utils/http/axios';
import { DemoOptionsItem, selectParams } from './model/optionsModel'; import { DemoOptionsItem, selectParams } from './model/optionsModel';
enum Api { enum Api {

View File

@@ -10,7 +10,7 @@ import {
RolePageListGetResultModel, RolePageListGetResultModel,
RoleListGetResultModel, RoleListGetResultModel,
} from './model/systemModel'; } from './model/systemModel';
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '@/utils/http/axios';
enum Api { enum Api {
AccountList = '/system/getAccountList', AccountList = '/system/getAccountList',

View File

@@ -1,4 +1,4 @@
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '@/utils/http/axios';
import { DemoParams, DemoListGetResultModel } from './model/tableModel'; import { DemoParams, DemoListGetResultModel } from './model/tableModel';
enum Api { enum Api {

View File

@@ -1,4 +1,4 @@
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '@/utils/http/axios';
enum Api { enum Api {
TREE_OPTIONS_LIST = '/tree/getDemoOptions', TREE_OPTIONS_LIST = '/tree/getDemoOptions',

View File

@@ -1,4 +1,4 @@
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '@/utils/http/axios';
import { getMenuListResultModel } from './model/menuModel'; import { getMenuListResultModel } from './model/menuModel';
enum Api { enum Api {

View File

@@ -1,7 +1,7 @@
import { UploadApiResult } from './model/uploadModel'; import { UploadApiResult } from './model/uploadModel';
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '@/utils/http/axios';
import { UploadFileParams } from '/#/axios'; import { UploadFileParams } from '#/axios';
import { useGlobSetting } from '/@/hooks/setting'; import { useGlobSetting } from '@/hooks/setting';
import { AxiosProgressEvent } from 'axios'; import { AxiosProgressEvent } from 'axios';
const { uploadUrl = '' } = useGlobSetting(); const { uploadUrl = '' } = useGlobSetting();

View File

@@ -1,7 +1,7 @@
import { defHttp } from '/@/utils/http/axios'; import { defHttp } from '@/utils/http/axios';
import { LoginParams, LoginResultModel, GetUserInfoModel } from './model/userModel'; import { LoginParams, LoginResultModel, GetUserInfoModel } from './model/userModel';
import { ErrorMessageMode } from '/#/axios'; import { ErrorMessageMode } from '#/axios';
enum Api { enum Api {
Login = '/login', Login = '/login',

View File

@@ -18,7 +18,7 @@
</Dropdown> </Dropdown>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import type { LocaleType } from '/#/config'; import type { LocaleType } from '#/config';
import type { DropMenu } from '@/components/Dropdown'; import type { DropMenu } from '@/components/Dropdown';
import { ref, watchEffect, unref, computed } from 'vue'; import { ref, watchEffect, unref, computed } from 'vue';
import { Dropdown } from '@/components/Dropdown'; import { Dropdown } from '@/components/Dropdown';

View File

@@ -43,7 +43,7 @@
import { Dropdown, Menu, Popconfirm } from 'ant-design-vue'; import { Dropdown, Menu, Popconfirm } from 'ant-design-vue';
import Icon from '@/components/Icon/Icon.vue'; import Icon from '@/components/Icon/Icon.vue';
import { omit } from 'lodash-es'; import { omit } from 'lodash-es';
import { isFunction } from '/@/utils/is'; import { isFunction } from '@/utils/is';
const ADropdown = Dropdown; const ADropdown = Dropdown;
const AMenu = Menu; const AMenu = Menu;

View File

@@ -5,7 +5,7 @@ import type {
FormSchemaInner as FormSchema, FormSchemaInner as FormSchema,
} from '../types/form'; } from '../types/form';
import type { NamePath } from 'ant-design-vue/lib/form/interface'; import type { NamePath } from 'ant-design-vue/lib/form/interface';
import type { DynamicProps } from '/#/utils'; import type { DynamicProps } from '#/utils';
import { ref, onUnmounted, unref, nextTick, watch } from 'vue'; import { ref, onUnmounted, unref, nextTick, watch } from 'vue';
import { isProdMode } from '@/utils/env'; import { isProdMode } from '@/utils/env';
import { error } from '@/utils/log'; import { error } from '@/utils/log';

View File

@@ -1,5 +1,5 @@
import { MenuModeEnum } from '@/enums/menuEnum'; import { MenuModeEnum } from '@/enums/menuEnum';
import type { Menu as MenuType } from '/@/router/types'; import type { Menu as MenuType } from '@/router/types';
import type { MenuState, Key } from './types'; import type { MenuState, Key } from './types';
import { computed, Ref, toRaw, unref } from 'vue'; import { computed, Ref, toRaw, unref } from 'vue';
import { useTimeoutFn } from '@vben/hooks'; import { useTimeoutFn } from '@vben/hooks';

View File

@@ -76,7 +76,7 @@
import { CollapseTransition } from '@/components/Transition'; import { CollapseTransition } from '@/components/Transition';
import Icon from '@/components/Icon/Icon.vue'; import Icon from '@/components/Icon/Icon.vue';
import { Popover } from 'ant-design-vue'; import { Popover } from 'ant-design-vue';
import { isBoolean, isObject } from '/@/utils/is'; import { isBoolean, isObject } from '@/utils/is';
import { mitt } from '@/utils/mitt'; import { mitt } from '@/utils/mitt';
defineOptions({ name: 'SubMenu' }); defineOptions({ name: 'SubMenu' });

View File

@@ -1,6 +1,6 @@
import type { BasicTableProps, TableActionType, FetchParams, BasicColumn } from '../types/table'; import type { BasicTableProps, TableActionType, FetchParams, BasicColumn } from '../types/table';
import type { PaginationProps } from '../types/pagination'; import type { PaginationProps } from '../types/pagination';
import type { DynamicProps } from '/#/utils'; import type { DynamicProps } from '#/utils';
import type { FormActionType } from '@/components/Form'; import type { FormActionType } from '@/components/Form';
import type { WatchStopHandle } from 'vue'; import type { WatchStopHandle } from 'vue';
import { getDynamicProps } from '@/utils'; import { getDynamicProps } from '@/utils';

View File

@@ -1,5 +1,5 @@
import { on } from '/@/utils/domUtils'; import { on } from '@/utils/domUtils';
import { isServer } from '/@/utils/is'; import { isServer } from '@/utils/is';
import type { ComponentPublicInstance, DirectiveBinding, ObjectDirective } from 'vue'; import type { ComponentPublicInstance, DirectiveBinding, ObjectDirective } from 'vue';
type DocumentHandler = <T extends MouseEvent>(mouseup: T, mousedown: T) => void; type DocumentHandler = <T extends MouseEvent>(mouseup: T, mousedown: T) => void;

View File

@@ -1,4 +1,4 @@
import { createLoading } from '/@/components/Loading'; import { createLoading } from '@/components/Loading';
import type { Directive, App } from 'vue'; import type { Directive, App } from 'vue';
const loadingDirective: Directive = { const loadingDirective: Directive = {

View File

@@ -5,7 +5,7 @@
*/ */
import type { App, Directive, DirectiveBinding } from 'vue'; import type { App, Directive, DirectiveBinding } from 'vue';
import { usePermission } from '/@/hooks/web/usePermission'; import { usePermission } from '@/hooks/web/usePermission';
function isAuth(el: Element, binding: any) { function isAuth(el: Element, binding: any) {
const { hasPermission } = usePermission(); const { hasPermission } = usePermission();

View File

@@ -2,7 +2,7 @@
* Prevent repeated clicks * Prevent repeated clicks
* @Example v-repeat-click="()=>{}" * @Example v-repeat-click="()=>{}"
*/ */
import { on, once } from '/@/utils/domUtils'; import { on, once } from '@/utils/domUtils';
import type { Directive, DirectiveBinding } from 'vue'; import type { Directive, DirectiveBinding } from 'vue';
const repeatDirective: Directive = { const repeatDirective: Directive = {

View File

@@ -1,4 +1,4 @@
import type { GlobConfig } from '/#/config'; import type { GlobConfig } from '#/config';
import { getAppEnvConfig } from '@/utils/env'; import { getAppEnvConfig } from '@/utils/env';

View File

@@ -1,4 +1,4 @@
import type { HeaderSetting } from '/#/config'; import type { HeaderSetting } from '#/config';
import { computed, unref } from 'vue'; import { computed, unref } from 'vue';

View File

@@ -1,4 +1,4 @@
import type { MenuSetting } from '/#/config'; import type { MenuSetting } from '#/config';
import { computed, unref, ref } from 'vue'; import { computed, unref, ref } from 'vue';

View File

@@ -1,4 +1,4 @@
import type { MultiTabsSetting } from '/#/config'; import type { MultiTabsSetting } from '#/config';
import { computed } from 'vue'; import { computed } from 'vue';

View File

@@ -1,4 +1,4 @@
import type { ProjectConfig } from '/#/config'; import type { ProjectConfig } from '#/config';
import { computed } from 'vue'; import { computed } from 'vue';

View File

@@ -1,4 +1,4 @@
import type { TransitionSetting } from '/#/config'; import type { TransitionSetting } from '#/config';
import { computed } from 'vue'; import { computed } from 'vue';

View File

@@ -16,25 +16,25 @@
<script lang="ts"> <script lang="ts">
import type { RouteLocationMatched } from 'vue-router'; import type { RouteLocationMatched } from 'vue-router';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import type { Menu } from '/@/router/types'; import type { Menu } from '@/router/types';
import { defineComponent, ref, watchEffect } from 'vue'; import { defineComponent, ref, watchEffect } from 'vue';
import { Breadcrumb } from 'ant-design-vue'; import { Breadcrumb } from 'ant-design-vue';
import Icon from '@/components/Icon/Icon.vue'; import Icon from '@/components/Icon/Icon.vue';
import { useDesign } from '/@/hooks/web/useDesign'; import { useDesign } from '@/hooks/web/useDesign';
import { useRootSetting } from '/@/hooks/setting/useRootSetting'; import { useRootSetting } from '@/hooks/setting/useRootSetting';
import { useGo } from '/@/hooks/web/usePage'; import { useGo } from '@/hooks/web/usePage';
import { useI18n } from '/@/hooks/web/useI18n'; import { useI18n } from '@/hooks/web/useI18n';
import { propTypes } from '/@/utils/propTypes'; import { propTypes } from '@/utils/propTypes';
import { isString } from '/@/utils/is'; import { isString } from '@/utils/is';
import { filter } from '/@/utils/helper/treeHelper'; import { filter } from '@/utils/helper/treeHelper';
import { getMenus } from '/@/router/menus'; import { getMenus } from '@/router/menus';
import { REDIRECT_NAME } from '/@/router/constant'; import { REDIRECT_NAME } from '@/router/constant';
import { getAllParentPath } from '/@/router/helper/menuHelper'; import { getAllParentPath } from '@/router/helper/menuHelper';
export default defineComponent({ export default defineComponent({
name: 'LayoutBreadcrumb', name: 'LayoutBreadcrumb',

View File

@@ -24,7 +24,7 @@
import { BasicForm, useForm } from '@/components/Form'; import { BasicForm, useForm } from '@/components/Form';
import { ref } from 'vue'; import { ref } from 'vue';
import { useAppStore } from '@/store/modules/app'; import { useAppStore } from '@/store/modules/app';
import type { ApiAddress } from '/#/store'; import type { ApiAddress } from '#/store';
const appStore = useAppStore(); const appStore = useAppStore();
const RadioGroup = Radio.Group; const RadioGroup = Radio.Group;

View File

@@ -4,7 +4,7 @@ import { updateColorWeak } from '@/logics/theme/updateColorWeak';
import { updateGrayMode } from '@/logics/theme/updateGrayMode'; import { updateGrayMode } from '@/logics/theme/updateGrayMode';
import { useAppStore } from '@/store/modules/app'; import { useAppStore } from '@/store/modules/app';
import { ProjectConfig } from '/#/config'; import { ProjectConfig } from '#/config';
import { updateDarkTheme } from '@/logics/theme/dark'; import { updateDarkTheme } from '@/logics/theme/dark';
import { useRootSetting } from '@/hooks/setting/useRootSetting'; import { useRootSetting } from '@/hooks/setting/useRootSetting';

View File

@@ -1,4 +1,4 @@
import type { LocaleType } from '/#/config'; import type { LocaleType } from '#/config';
import { set } from 'lodash-es'; import { set } from 'lodash-es';

View File

@@ -1,6 +1,6 @@
import { genMessage } from '../helper'; import { genMessage } from '../helper';
import antdLocale from 'ant-design-vue/es/locale/zh_CN'; import antdLocale from 'ant-design-vue/es/locale/zh_CN';
import { deepMerge } from '/@/utils'; import { deepMerge } from '@/utils';
const modules = import.meta.glob('./zh-CN/**/*.json', { eager: true }); const modules = import.meta.glob('./zh-CN/**/*.json', { eager: true });

View File

@@ -3,8 +3,8 @@ import type { I18nOptions } from 'vue-i18n';
import { createI18n } from 'vue-i18n'; import { createI18n } from 'vue-i18n';
import { setHtmlPageLang, setLoadLocalePool } from './helper'; import { setHtmlPageLang, setLoadLocalePool } from './helper';
import { localeSetting } from '/@/settings/localeSetting'; import { localeSetting } from '@/settings/localeSetting';
import { useLocaleStoreWithOut } from '/@/store/modules/locale'; import { useLocaleStoreWithOut } from '@/store/modules/locale';
const { fallback, availableLocales } = localeSetting; const { fallback, availableLocales } = localeSetting;

View File

@@ -1,10 +1,10 @@
/** /**
* Multi-language related operations * Multi-language related operations
*/ */
import type { LocaleType } from '/#/config'; import type { LocaleType } from '#/config';
import { i18n } from './setupI18n'; import { i18n } from './setupI18n';
import { useLocaleStoreWithOut } from '/@/store/modules/locale'; import { useLocaleStoreWithOut } from '@/store/modules/locale';
import { unref, computed } from 'vue'; import { unref, computed } from 'vue';
import { loadLocalePool, setHtmlPageLang } from './helper'; import { loadLocalePool, setHtmlPageLang } from './helper';
import { Locale } from 'ant-design-vue/es/locale'; import { Locale } from 'ant-design-vue/es/locale';

View File

@@ -2,13 +2,13 @@
* Used to configure the global error handling function, which can monitor vue errors, script errors, static resource errors and Promise errors * Used to configure the global error handling function, which can monitor vue errors, script errors, static resource errors and Promise errors
*/ */
import type { ErrorLogInfo } from '/#/store'; import type { ErrorLogInfo } from '#/store';
import { useErrorLogStoreWithOut } from '/@/store/modules/errorLog'; import { useErrorLogStoreWithOut } from '@/store/modules/errorLog';
import { ErrorTypeEnum } from '/@/enums/exceptionEnum'; import { ErrorTypeEnum } from '@/enums/exceptionEnum';
import { App } from 'vue'; import { App } from 'vue';
import projectSetting from '/@/settings/projectSetting'; import projectSetting from '@/settings/projectSetting';
/** /**
* Handling error stack information * Handling error stack information

View File

@@ -1,24 +1,24 @@
/** /**
* Application configuration * Application configuration
*/ */
import type { ProjectConfig } from '/#/config'; import type { ProjectConfig } from '#/config';
import { PROJ_CFG_KEY } from '/@/enums/cacheEnum'; import { PROJ_CFG_KEY } from '@/enums/cacheEnum';
import projectSetting from '/@/settings/projectSetting'; import projectSetting from '@/settings/projectSetting';
import { updateDarkTheme } from '/@/logics/theme/dark'; import { updateDarkTheme } from '@/logics/theme/dark';
import { updateHeaderBgColor, updateSidebarBgColor } from '/@/logics/theme/updateBackground'; import { updateHeaderBgColor, updateSidebarBgColor } from '@/logics/theme/updateBackground';
import { updateColorWeak } from '/@/logics/theme/updateColorWeak'; import { updateColorWeak } from '@/logics/theme/updateColorWeak';
import { updateGrayMode } from '/@/logics/theme/updateGrayMode'; import { updateGrayMode } from '@/logics/theme/updateGrayMode';
import { useAppStore } from '/@/store/modules/app'; import { useAppStore } from '@/store/modules/app';
import { useLocaleStore } from '/@/store/modules/locale'; import { useLocaleStore } from '@/store/modules/locale';
import { getCommonStoragePrefix, getStorageShortName } from '/@/utils/env'; import { getCommonStoragePrefix, getStorageShortName } from '@/utils/env';
import { ThemeEnum } from '/@/enums/appEnum'; import { ThemeEnum } from '@/enums/appEnum';
import { deepMerge } from '/@/utils'; import { deepMerge } from '@/utils';
import { Persistent } from '/@/utils/cache/persistent'; import { Persistent } from '@/utils/cache/persistent';
// Initial project configuration // Initial project configuration
export function initAppConfigStore() { export function initAppConfigStore() {

View File

@@ -2,9 +2,9 @@
* Used to monitor routing changes to change the status of menus and tabs. There is no need to monitor the route, because the route status change is affected by the page rendering time, which will be slow * Used to monitor routing changes to change the status of menus and tabs. There is no need to monitor the route, because the route status change is affected by the page rendering time, which will be slow
*/ */
import { mitt } from '/@/utils/mitt'; import { mitt } from '@/utils/mitt';
import type { RouteLocationNormalized } from 'vue-router'; import type { RouteLocationNormalized } from 'vue-router';
import { getRawRoute } from '/@/utils'; import { getRawRoute } from '@/utils';
const key = Symbol(); const key = Symbol();

View File

@@ -1,5 +1,5 @@
import { setCssVar } from './util'; import { setCssVar } from './util';
import { addClass, hasClass, removeClass } from '/@/utils/domUtils'; import { addClass, hasClass, removeClass } from '@/utils/domUtils';
export type CustomColorType = { export type CustomColorType = {
name: string; name: string;

View File

@@ -1,6 +1,6 @@
import { colorIsDark, lighten, darken } from '/@/utils/color'; import { colorIsDark, lighten, darken } from '@/utils/color';
import { useAppStore } from '/@/store/modules/app'; import { useAppStore } from '@/store/modules/app';
import { ThemeEnum } from '/@/enums/appEnum'; import { ThemeEnum } from '@/enums/appEnum';
import { setCssVar } from './util'; import { setCssVar } from './util';
const HEADER_BG_COLOR_VAR = '--header-bg-color'; const HEADER_BG_COLOR_VAR = '--header-bg-color';

View File

@@ -4,12 +4,12 @@ export const PARENT_LAYOUT_NAME = 'ParentLayout';
export const PAGE_NOT_FOUND_NAME = 'PageNotFound'; export const PAGE_NOT_FOUND_NAME = 'PageNotFound';
export const EXCEPTION_COMPONENT = () => import('/@/views/sys/exception/Exception.vue'); export const EXCEPTION_COMPONENT = () => import('@/views/sys/exception/Exception.vue');
/** /**
* @description: default layout * @description: default layout
*/ */
export const LAYOUT = () => import('/@/layouts/default/index.vue'); export const LAYOUT = () => import('@/layouts/default/index.vue');
/** /**
* @description: parent-layout * @description: parent-layout

View File

@@ -1,16 +1,16 @@
import type { Router, RouteLocationNormalized } from 'vue-router'; import type { Router, RouteLocationNormalized } from 'vue-router';
import { useAppStoreWithOut } from '/@/store/modules/app'; import { useAppStoreWithOut } from '@/store/modules/app';
import { useUserStoreWithOut } from '/@/store/modules/user'; import { useUserStoreWithOut } from '@/store/modules/user';
import { useTransitionSetting } from '/@/hooks/setting/useTransitionSetting'; import { useTransitionSetting } from '@/hooks/setting/useTransitionSetting';
import { AxiosCanceler } from '/@/utils/http/axios/axiosCancel'; import { AxiosCanceler } from '@/utils/http/axios/axiosCancel';
import { Modal, notification } from 'ant-design-vue'; import { Modal, notification } from 'ant-design-vue';
import { warn } from '/@/utils/log'; import { warn } from '@/utils/log';
import { unref } from 'vue'; import { unref } from 'vue';
import { setRouteChange } from '/@/logics/mitt/routeChange'; import { setRouteChange } from '@/logics/mitt/routeChange';
import { createPermissionGuard } from './permissionGuard'; import { createPermissionGuard } from './permissionGuard';
import { createStateGuard } from './stateGuard'; import { createStateGuard } from './stateGuard';
import nProgress from 'nprogress'; import nProgress from 'nprogress';
import projectSetting from '/@/settings/projectSetting'; import projectSetting from '@/settings/projectSetting';
import { createParamMenuGuard } from './paramMenuGuard'; import { createParamMenuGuard } from './paramMenuGuard';
// Don't change the order of creation // Don't change the order of creation

View File

@@ -1,10 +1,10 @@
import type { Router } from 'vue-router'; import type { Router } from 'vue-router';
import { configureDynamicParamsMenu } from '../helper/menuHelper'; import { configureDynamicParamsMenu } from '../helper/menuHelper';
import { Menu } from '../types'; import { Menu } from '../types';
import { PermissionModeEnum } from '/@/enums/appEnum'; import { PermissionModeEnum } from '@/enums/appEnum';
import { useAppStoreWithOut } from '/@/store/modules/app'; import { useAppStoreWithOut } from '@/store/modules/app';
import { usePermissionStoreWithOut } from '/@/store/modules/permission'; import { usePermissionStoreWithOut } from '@/store/modules/permission';
export function createParamMenuGuard(router: Router) { export function createParamMenuGuard(router: Router) {
const permissionStore = usePermissionStoreWithOut(); const permissionStore = usePermissionStoreWithOut();

View File

@@ -1,13 +1,13 @@
import type { Router, RouteRecordRaw } from 'vue-router'; import type { Router, RouteRecordRaw } from 'vue-router';
import { usePermissionStoreWithOut } from '/@/store/modules/permission'; import { usePermissionStoreWithOut } from '@/store/modules/permission';
import { PageEnum } from '/@/enums/pageEnum'; import { PageEnum } from '@/enums/pageEnum';
import { useUserStoreWithOut } from '/@/store/modules/user'; import { useUserStoreWithOut } from '@/store/modules/user';
import { PAGE_NOT_FOUND_ROUTE } from '/@/router/routes/basic'; import { PAGE_NOT_FOUND_ROUTE } from '@/router/routes/basic';
import { RootRoute } from '/@/router/routes'; import { RootRoute } from '@/router/routes';
const LOGIN_PATH = PageEnum.BASE_LOGIN; const LOGIN_PATH = PageEnum.BASE_LOGIN;

View File

@@ -1,10 +1,10 @@
import type { Router } from 'vue-router'; import type { Router } from 'vue-router';
import { useAppStore } from '/@/store/modules/app'; import { useAppStore } from '@/store/modules/app';
import { useMultipleTabStore } from '/@/store/modules/multipleTab'; import { useMultipleTabStore } from '@/store/modules/multipleTab';
import { useUserStore } from '/@/store/modules/user'; import { useUserStore } from '@/store/modules/user';
import { usePermissionStore } from '/@/store/modules/permission'; import { usePermissionStore } from '@/store/modules/permission';
import { PageEnum } from '/@/enums/pageEnum'; import { PageEnum } from '@/enums/pageEnum';
import { removeTabChangeListener } from '/@/logics/mitt/routeChange'; import { removeTabChangeListener } from '@/logics/mitt/routeChange';
export function createStateGuard(router: Router) { export function createStateGuard(router: Router) {
router.afterEach((to) => { router.afterEach((to) => {

View File

@@ -1,8 +1,8 @@
import { AppRouteModule } from '/@/router/types'; import { AppRouteModule } from '@/router/types';
import type { MenuModule, Menu, AppRouteRecordRaw } from '/@/router/types'; import type { MenuModule, Menu, AppRouteRecordRaw } from '@/router/types';
import { findPath, treeMap } from '/@/utils/helper/treeHelper'; import { findPath, treeMap } from '@/utils/helper/treeHelper';
import { cloneDeep } from 'lodash-es'; import { cloneDeep } from 'lodash-es';
import { isHttpUrl } from '/@/utils/is'; import { isHttpUrl } from '@/utils/is';
import { RouteParams } from 'vue-router'; import { RouteParams } from 'vue-router';
import { toRaw } from 'vue'; import { toRaw } from 'vue';

View File

@@ -1,13 +1,13 @@
import type { AppRouteModule, AppRouteRecordRaw } from '/@/router/types'; import type { AppRouteModule, AppRouteRecordRaw } from '@/router/types';
import type { Router, RouteRecordNormalized } from 'vue-router'; import type { Router, RouteRecordNormalized } from 'vue-router';
import { getParentLayout, LAYOUT, EXCEPTION_COMPONENT } from '/@/router/constant'; import { getParentLayout, LAYOUT, EXCEPTION_COMPONENT } from '@/router/constant';
import { cloneDeep, omit } from 'lodash-es'; import { cloneDeep, omit } from 'lodash-es';
import { warn } from '/@/utils/log'; import { warn } from '@/utils/log';
import { createRouter, createWebHashHistory } from 'vue-router'; import { createRouter, createWebHashHistory } from 'vue-router';
export type LayoutMapKey = 'LAYOUT'; export type LayoutMapKey = 'LAYOUT';
const IFRAME = () => import('/@/views/sys/iframe/FrameBlank.vue'); const IFRAME = () => import('@/views/sys/iframe/FrameBlank.vue');
const LayoutMap = new Map<string, () => Promise<typeof import('*.vue')>>(); const LayoutMap = new Map<string, () => Promise<typeof import('*.vue')>>();

View File

@@ -1,13 +1,13 @@
import type { Menu, MenuModule } from '/@/router/types'; import type { Menu, MenuModule } from '@/router/types';
import type { RouteRecordNormalized } from 'vue-router'; import type { RouteRecordNormalized } from 'vue-router';
import { useAppStoreWithOut } from '/@/store/modules/app'; import { useAppStoreWithOut } from '@/store/modules/app';
import { usePermissionStore } from '/@/store/modules/permission'; import { usePermissionStore } from '@/store/modules/permission';
import { transformMenuModule, getAllParentPath } from '/@/router/helper/menuHelper'; import { transformMenuModule, getAllParentPath } from '@/router/helper/menuHelper';
import { filter } from '/@/utils/helper/treeHelper'; import { filter } from '@/utils/helper/treeHelper';
import { isHttpUrl } from '/@/utils/is'; import { isHttpUrl } from '@/utils/is';
import { router } from '/@/router'; import { router } from '@/router';
import { PermissionModeEnum } from '/@/enums/appEnum'; import { PermissionModeEnum } from '@/enums/appEnum';
import { pathToRegexp } from 'path-to-regexp'; import { pathToRegexp } from 'path-to-regexp';
const modules = import.meta.glob('./modules/**/*.ts', { eager: true }); const modules = import.meta.glob('./modules/**/*.ts', { eager: true });

View File

@@ -1,11 +1,6 @@
import type { AppRouteRecordRaw } from '/@/router/types'; import type { AppRouteRecordRaw } from '@/router/types';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
import { import { REDIRECT_NAME, LAYOUT, EXCEPTION_COMPONENT, PAGE_NOT_FOUND_NAME } from '@/router/constant';
REDIRECT_NAME,
LAYOUT,
EXCEPTION_COMPONENT,
PAGE_NOT_FOUND_NAME,
} from '/@/router/constant';
// 404 on a page // 404 on a page
export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = { export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
@@ -44,7 +39,7 @@ export const REDIRECT_ROUTE: AppRouteRecordRaw = {
{ {
path: '/redirect/:path(.*)/:_redirect_type(.*)/:_origin_params(.*)?', path: '/redirect/:path(.*)/:_redirect_type(.*)/:_origin_params(.*)?',
name: REDIRECT_NAME, name: REDIRECT_NAME,
component: () => import('/@/views/sys/redirect/index.vue'), component: () => import('@/views/sys/redirect/index.vue'),
meta: { meta: {
title: REDIRECT_NAME, title: REDIRECT_NAME,
hideBreadcrumb: true, hideBreadcrumb: true,
@@ -67,7 +62,7 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
{ {
path: 'list', path: 'list',
name: 'ErrorLogList', name: 'ErrorLogList',
component: () => import('/@/views/sys/error-log/index.vue'), component: () => import('@/views/sys/error-log/index.vue'),
meta: { meta: {
title: t('routes.basic.errorLogList'), title: t('routes.basic.errorLogList'),
hideBreadcrumb: true, hideBreadcrumb: true,

View File

@@ -1,10 +1,10 @@
import type { AppRouteRecordRaw, AppRouteModule } from '/@/router/types'; import type { AppRouteRecordRaw, AppRouteModule } from '@/router/types';
import { PAGE_NOT_FOUND_ROUTE, REDIRECT_ROUTE } from '/@/router/routes/basic'; import { PAGE_NOT_FOUND_ROUTE, REDIRECT_ROUTE } from '@/router/routes/basic';
import { mainOutRoutes } from './mainOut'; import { mainOutRoutes } from './mainOut';
import { PageEnum } from '/@/enums/pageEnum'; import { PageEnum } from '@/enums/pageEnum';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
// import.meta.glob() 直接引入所有的模块 Vite 独有的功能 // import.meta.glob() 直接引入所有的模块 Vite 独有的功能
const modules = import.meta.glob('./modules/**/*.ts', { eager: true }); const modules = import.meta.glob('./modules/**/*.ts', { eager: true });
@@ -32,7 +32,7 @@ export const RootRoute: AppRouteRecordRaw = {
export const LoginRoute: AppRouteRecordRaw = { export const LoginRoute: AppRouteRecordRaw = {
path: '/login', path: '/login',
name: 'Login', name: 'Login',
component: () => import('/@/views/sys/login/Login.vue'), component: () => import('@/views/sys/login/Login.vue'),
meta: { meta: {
title: t('routes.basic.login'), title: t('routes.basic.login'),
}, },

View File

@@ -3,7 +3,7 @@ The routing of this file will not show the layout.
It is an independent new page. It is an independent new page.
the contents of the file still need to log in to access the contents of the file still need to log in to access
*/ */
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
// test // test
// http:ip:port/main-out // http:ip:port/main-out
@@ -11,7 +11,7 @@ export const mainOutRoutes: AppRouteModule[] = [
{ {
path: '/main-out', path: '/main-out',
name: 'MainOut', name: 'MainOut',
component: () => import('/@/views/demo/main-out/index.vue'), component: () => import('@/views/demo/main-out/index.vue'),
meta: { meta: {
title: 'MainOut', title: 'MainOut',
ignoreAuth: true, ignoreAuth: true,

View File

@@ -1,7 +1,7 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '/@/router/constant'; import { LAYOUT } from '@/router/constant';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
const about: AppRouteModule = { const about: AppRouteModule = {
path: '/about', path: '/about',
@@ -18,7 +18,7 @@ const about: AppRouteModule = {
{ {
path: 'index', path: 'index',
name: 'AboutPage', name: 'AboutPage',
component: () => import('/@/views/sys/about/index.vue'), component: () => import('@/views/sys/about/index.vue'),
meta: { meta: {
title: t('routes.dashboard.about'), title: t('routes.dashboard.about'),
icon: 'simple-icons:about-dot-me', icon: 'simple-icons:about-dot-me',

View File

@@ -1,7 +1,7 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '/@/router/constant'; import { LAYOUT } from '@/router/constant';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
const dashboard: AppRouteModule = { const dashboard: AppRouteModule = {
path: '/dashboard', path: '/dashboard',
@@ -17,7 +17,7 @@ const dashboard: AppRouteModule = {
{ {
path: 'analysis', path: 'analysis',
name: 'Analysis', name: 'Analysis',
component: () => import('/@/views/dashboard/analysis/index.vue'), component: () => import('@/views/dashboard/analysis/index.vue'),
meta: { meta: {
// affix: true, // affix: true,
title: t('routes.dashboard.analysis'), title: t('routes.dashboard.analysis'),
@@ -26,7 +26,7 @@ const dashboard: AppRouteModule = {
{ {
path: 'workbench', path: 'workbench',
name: 'Workbench', name: 'Workbench',
component: () => import('/@/views/dashboard/workbench/index.vue'), component: () => import('@/views/dashboard/workbench/index.vue'),
meta: { meta: {
title: t('routes.dashboard.workbench'), title: t('routes.dashboard.workbench'),
}, },

View File

@@ -1,7 +1,7 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { getParentLayout, LAYOUT } from '/@/router/constant'; import { getParentLayout, LAYOUT } from '@/router/constant';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
const charts: AppRouteModule = { const charts: AppRouteModule = {
path: '/charts', path: '/charts',
@@ -20,7 +20,7 @@ const charts: AppRouteModule = {
meta: { meta: {
title: t('routes.demo.charts.baiduMap'), title: t('routes.demo.charts.baiduMap'),
}, },
component: () => import('/@/views/demo/charts/map/Baidu.vue'), component: () => import('@/views/demo/charts/map/Baidu.vue'),
}, },
{ {
path: 'aMap', path: 'aMap',
@@ -28,7 +28,7 @@ const charts: AppRouteModule = {
meta: { meta: {
title: t('routes.demo.charts.aMap'), title: t('routes.demo.charts.aMap'),
}, },
component: () => import('/@/views/demo/charts/map/Gaode.vue'), component: () => import('@/views/demo/charts/map/Gaode.vue'),
}, },
{ {
path: 'googleMap', path: 'googleMap',
@@ -36,7 +36,7 @@ const charts: AppRouteModule = {
meta: { meta: {
title: t('routes.demo.charts.googleMap'), title: t('routes.demo.charts.googleMap'),
}, },
component: () => import('/@/views/demo/charts/map/Google.vue'), component: () => import('@/views/demo/charts/map/Google.vue'),
}, },
{ {
@@ -51,7 +51,7 @@ const charts: AppRouteModule = {
{ {
path: 'map', path: 'map',
name: 'Map', name: 'Map',
component: () => import('/@/views/demo/charts/Map.vue'), component: () => import('@/views/demo/charts/Map.vue'),
meta: { meta: {
title: t('routes.demo.charts.map'), title: t('routes.demo.charts.map'),
}, },
@@ -59,7 +59,7 @@ const charts: AppRouteModule = {
{ {
path: 'line', path: 'line',
name: 'Line', name: 'Line',
component: () => import('/@/views/demo/charts/Line.vue'), component: () => import('@/views/demo/charts/Line.vue'),
meta: { meta: {
title: t('routes.demo.charts.line'), title: t('routes.demo.charts.line'),
}, },
@@ -67,7 +67,7 @@ const charts: AppRouteModule = {
{ {
path: 'pie', path: 'pie',
name: 'Pie', name: 'Pie',
component: () => import('/@/views/demo/charts/Pie.vue'), component: () => import('@/views/demo/charts/Pie.vue'),
meta: { meta: {
title: t('routes.demo.charts.pie'), title: t('routes.demo.charts.pie'),
}, },

View File

@@ -1,7 +1,7 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { getParentLayout, LAYOUT } from '/@/router/constant'; import { getParentLayout, LAYOUT } from '@/router/constant';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
const comp: AppRouteModule = { const comp: AppRouteModule = {
path: '/comp', path: '/comp',
@@ -18,7 +18,7 @@ const comp: AppRouteModule = {
{ {
path: 'basic', path: 'basic',
name: 'BasicDemo', name: 'BasicDemo',
component: () => import('/@/views/demo/comp/button/index.vue'), component: () => import('@/views/demo/comp/button/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.basic'), title: t('routes.demo.comp.basic'),
}, },
@@ -37,7 +37,7 @@ const comp: AppRouteModule = {
{ {
path: 'basic', path: 'basic',
name: 'FormBasicDemo', name: 'FormBasicDemo',
component: () => import('/@/views/demo/form/index.vue'), component: () => import('@/views/demo/form/index.vue'),
meta: { meta: {
title: t('routes.demo.form.basic'), title: t('routes.demo.form.basic'),
}, },
@@ -45,7 +45,7 @@ const comp: AppRouteModule = {
{ {
path: 'useForm', path: 'useForm',
name: 'UseFormDemo', name: 'UseFormDemo',
component: () => import('/@/views/demo/form/UseForm.vue'), component: () => import('@/views/demo/form/UseForm.vue'),
meta: { meta: {
title: t('routes.demo.form.useForm'), title: t('routes.demo.form.useForm'),
}, },
@@ -53,7 +53,7 @@ const comp: AppRouteModule = {
{ {
path: 'refForm', path: 'refForm',
name: 'RefFormDemo', name: 'RefFormDemo',
component: () => import('/@/views/demo/form/RefForm.vue'), component: () => import('@/views/demo/form/RefForm.vue'),
meta: { meta: {
title: t('routes.demo.form.refForm'), title: t('routes.demo.form.refForm'),
}, },
@@ -61,7 +61,7 @@ const comp: AppRouteModule = {
{ {
path: 'advancedForm', path: 'advancedForm',
name: 'AdvancedFormDemo', name: 'AdvancedFormDemo',
component: () => import('/@/views/demo/form/AdvancedForm.vue'), component: () => import('@/views/demo/form/AdvancedForm.vue'),
meta: { meta: {
title: t('routes.demo.form.advancedForm'), title: t('routes.demo.form.advancedForm'),
}, },
@@ -69,7 +69,7 @@ const comp: AppRouteModule = {
{ {
path: 'ruleForm', path: 'ruleForm',
name: 'RuleFormDemo', name: 'RuleFormDemo',
component: () => import('/@/views/demo/form/RuleForm.vue'), component: () => import('@/views/demo/form/RuleForm.vue'),
meta: { meta: {
title: t('routes.demo.form.ruleForm'), title: t('routes.demo.form.ruleForm'),
}, },
@@ -77,7 +77,7 @@ const comp: AppRouteModule = {
{ {
path: 'dynamicForm', path: 'dynamicForm',
name: 'DynamicFormDemo', name: 'DynamicFormDemo',
component: () => import('/@/views/demo/form/DynamicForm.vue'), component: () => import('@/views/demo/form/DynamicForm.vue'),
meta: { meta: {
title: t('routes.demo.form.dynamicForm'), title: t('routes.demo.form.dynamicForm'),
}, },
@@ -85,7 +85,7 @@ const comp: AppRouteModule = {
{ {
path: 'customerForm', path: 'customerForm',
name: 'CustomerFormDemo', name: 'CustomerFormDemo',
component: () => import('/@/views/demo/form/CustomerForm.vue'), component: () => import('@/views/demo/form/CustomerForm.vue'),
meta: { meta: {
title: t('routes.demo.form.customerForm'), title: t('routes.demo.form.customerForm'),
}, },
@@ -93,7 +93,7 @@ const comp: AppRouteModule = {
{ {
path: 'appendForm', path: 'appendForm',
name: 'appendFormDemo', name: 'appendFormDemo',
component: () => import('/@/views/demo/form/AppendForm.vue'), component: () => import('@/views/demo/form/AppendForm.vue'),
meta: { meta: {
title: t('routes.demo.form.appendForm'), title: t('routes.demo.form.appendForm'),
}, },
@@ -101,7 +101,7 @@ const comp: AppRouteModule = {
{ {
path: 'tabsForm', path: 'tabsForm',
name: 'tabsFormDemo', name: 'tabsFormDemo',
component: () => import('/@/views/demo/form/TabsForm.vue'), component: () => import('@/views/demo/form/TabsForm.vue'),
meta: { meta: {
title: t('routes.demo.form.tabsForm'), title: t('routes.demo.form.tabsForm'),
}, },
@@ -122,7 +122,7 @@ const comp: AppRouteModule = {
{ {
path: 'basic', path: 'basic',
name: 'TableBasicDemo', name: 'TableBasicDemo',
component: () => import('/@/views/demo/table/Basic.vue'), component: () => import('@/views/demo/table/Basic.vue'),
meta: { meta: {
title: t('routes.demo.table.basic'), title: t('routes.demo.table.basic'),
}, },
@@ -130,7 +130,7 @@ const comp: AppRouteModule = {
{ {
path: 'treeTable', path: 'treeTable',
name: 'TreeTableDemo', name: 'TreeTableDemo',
component: () => import('/@/views/demo/table/TreeTable.vue'), component: () => import('@/views/demo/table/TreeTable.vue'),
meta: { meta: {
title: t('routes.demo.table.treeTable'), title: t('routes.demo.table.treeTable'),
}, },
@@ -138,7 +138,7 @@ const comp: AppRouteModule = {
{ {
path: 'fetchTable', path: 'fetchTable',
name: 'FetchTableDemo', name: 'FetchTableDemo',
component: () => import('/@/views/demo/table/FetchTable.vue'), component: () => import('@/views/demo/table/FetchTable.vue'),
meta: { meta: {
title: t('routes.demo.table.fetchTable'), title: t('routes.demo.table.fetchTable'),
}, },
@@ -146,7 +146,7 @@ const comp: AppRouteModule = {
{ {
path: 'fixedColumn', path: 'fixedColumn',
name: 'FixedColumnDemo', name: 'FixedColumnDemo',
component: () => import('/@/views/demo/table/FixedColumn.vue'), component: () => import('@/views/demo/table/FixedColumn.vue'),
meta: { meta: {
title: t('routes.demo.table.fixedColumn'), title: t('routes.demo.table.fixedColumn'),
}, },
@@ -154,7 +154,7 @@ const comp: AppRouteModule = {
{ {
path: 'customerCell', path: 'customerCell',
name: 'CustomerCellDemo', name: 'CustomerCellDemo',
component: () => import('/@/views/demo/table/CustomerCell.vue'), component: () => import('@/views/demo/table/CustomerCell.vue'),
meta: { meta: {
title: t('routes.demo.table.customerCell'), title: t('routes.demo.table.customerCell'),
}, },
@@ -162,7 +162,7 @@ const comp: AppRouteModule = {
{ {
path: 'formTable', path: 'formTable',
name: 'FormTableDemo', name: 'FormTableDemo',
component: () => import('/@/views/demo/table/FormTable.vue'), component: () => import('@/views/demo/table/FormTable.vue'),
meta: { meta: {
title: t('routes.demo.table.formTable'), title: t('routes.demo.table.formTable'),
}, },
@@ -170,7 +170,7 @@ const comp: AppRouteModule = {
{ {
path: 'useTable', path: 'useTable',
name: 'UseTableDemo', name: 'UseTableDemo',
component: () => import('/@/views/demo/table/UseTable.vue'), component: () => import('@/views/demo/table/UseTable.vue'),
meta: { meta: {
title: t('routes.demo.table.useTable'), title: t('routes.demo.table.useTable'),
}, },
@@ -178,7 +178,7 @@ const comp: AppRouteModule = {
{ {
path: 'refTable', path: 'refTable',
name: 'RefTableDemo', name: 'RefTableDemo',
component: () => import('/@/views/demo/table/RefTable.vue'), component: () => import('@/views/demo/table/RefTable.vue'),
meta: { meta: {
title: t('routes.demo.table.refTable'), title: t('routes.demo.table.refTable'),
}, },
@@ -186,7 +186,7 @@ const comp: AppRouteModule = {
{ {
path: 'multipleHeader', path: 'multipleHeader',
name: 'MultipleHeaderDemo', name: 'MultipleHeaderDemo',
component: () => import('/@/views/demo/table/MultipleHeader.vue'), component: () => import('@/views/demo/table/MultipleHeader.vue'),
meta: { meta: {
title: t('routes.demo.table.multipleHeader'), title: t('routes.demo.table.multipleHeader'),
}, },
@@ -194,7 +194,7 @@ const comp: AppRouteModule = {
{ {
path: 'mergeHeader', path: 'mergeHeader',
name: 'MergeHeaderDemo', name: 'MergeHeaderDemo',
component: () => import('/@/views/demo/table/MergeHeader.vue'), component: () => import('@/views/demo/table/MergeHeader.vue'),
meta: { meta: {
title: t('routes.demo.table.mergeHeader'), title: t('routes.demo.table.mergeHeader'),
}, },
@@ -202,7 +202,7 @@ const comp: AppRouteModule = {
{ {
path: 'expandTable', path: 'expandTable',
name: 'ExpandTableDemo', name: 'ExpandTableDemo',
component: () => import('/@/views/demo/table/ExpandTable.vue'), component: () => import('@/views/demo/table/ExpandTable.vue'),
meta: { meta: {
title: t('routes.demo.table.expandTable'), title: t('routes.demo.table.expandTable'),
}, },
@@ -210,7 +210,7 @@ const comp: AppRouteModule = {
{ {
path: 'fixedHeight', path: 'fixedHeight',
name: 'FixedHeightDemo', name: 'FixedHeightDemo',
component: () => import('/@/views/demo/table/FixedHeight.vue'), component: () => import('@/views/demo/table/FixedHeight.vue'),
meta: { meta: {
title: t('routes.demo.table.fixedHeight'), title: t('routes.demo.table.fixedHeight'),
}, },
@@ -218,7 +218,7 @@ const comp: AppRouteModule = {
{ {
path: 'footerTable', path: 'footerTable',
name: 'FooterTableDemo', name: 'FooterTableDemo',
component: () => import('/@/views/demo/table/FooterTable.vue'), component: () => import('@/views/demo/table/FooterTable.vue'),
meta: { meta: {
title: t('routes.demo.table.footerTable'), title: t('routes.demo.table.footerTable'),
}, },
@@ -226,7 +226,7 @@ const comp: AppRouteModule = {
{ {
path: 'editCellTable', path: 'editCellTable',
name: 'EditCellTableDemo', name: 'EditCellTableDemo',
component: () => import('/@/views/demo/table/EditCellTable.vue'), component: () => import('@/views/demo/table/EditCellTable.vue'),
meta: { meta: {
title: t('routes.demo.table.editCellTable'), title: t('routes.demo.table.editCellTable'),
}, },
@@ -234,7 +234,7 @@ const comp: AppRouteModule = {
{ {
path: 'editRowTable', path: 'editRowTable',
name: 'EditRowTableDemo', name: 'EditRowTableDemo',
component: () => import('/@/views/demo/table/EditRowTable.vue'), component: () => import('@/views/demo/table/EditRowTable.vue'),
meta: { meta: {
title: t('routes.demo.table.editRowTable'), title: t('routes.demo.table.editRowTable'),
}, },
@@ -242,7 +242,7 @@ const comp: AppRouteModule = {
{ {
path: 'authColumn', path: 'authColumn',
name: 'AuthColumnDemo', name: 'AuthColumnDemo',
component: () => import('/@/views/demo/table/AuthColumn.vue'), component: () => import('@/views/demo/table/AuthColumn.vue'),
meta: { meta: {
title: t('routes.demo.table.authColumn'), title: t('routes.demo.table.authColumn'),
}, },
@@ -250,7 +250,7 @@ const comp: AppRouteModule = {
{ {
path: 'resizeParentHeightTable', path: 'resizeParentHeightTable',
name: 'ResizeParentHeightTable', name: 'ResizeParentHeightTable',
component: () => import('/@/views/demo/table/ResizeParentHeightTable.vue'), component: () => import('@/views/demo/table/ResizeParentHeightTable.vue'),
meta: { meta: {
title: t('routes.demo.table.resizeParentHeightTable'), title: t('routes.demo.table.resizeParentHeightTable'),
}, },
@@ -258,7 +258,7 @@ const comp: AppRouteModule = {
{ {
path: 'vxeTable', path: 'vxeTable',
name: 'VxeTableDemo', name: 'VxeTableDemo',
component: () => import('/@/views/demo/table/VxeTable.vue'), component: () => import('@/views/demo/table/VxeTable.vue'),
meta: { meta: {
title: t('routes.demo.table.vxeTable'), title: t('routes.demo.table.vxeTable'),
}, },
@@ -268,7 +268,7 @@ const comp: AppRouteModule = {
{ {
path: 'transition', path: 'transition',
name: 'transitionDemo', name: 'transitionDemo',
component: () => import('/@/views/demo/comp/transition/index.vue'), component: () => import('@/views/demo/comp/transition/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.transition'), title: t('routes.demo.comp.transition'),
}, },
@@ -276,7 +276,7 @@ const comp: AppRouteModule = {
{ {
path: 'cropper', path: 'cropper',
name: 'CropperDemo', name: 'CropperDemo',
component: () => import('/@/views/demo/comp/cropper/index.vue'), component: () => import('@/views/demo/comp/cropper/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.cropperImage'), title: t('routes.demo.comp.cropperImage'),
}, },
@@ -285,7 +285,7 @@ const comp: AppRouteModule = {
{ {
path: 'timestamp', path: 'timestamp',
name: 'TimeDemo', name: 'TimeDemo',
component: () => import('/@/views/demo/comp/time/index.vue'), component: () => import('@/views/demo/comp/time/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.time'), title: t('routes.demo.comp.time'),
}, },
@@ -293,7 +293,7 @@ const comp: AppRouteModule = {
{ {
path: 'countTo', path: 'countTo',
name: 'CountTo', name: 'CountTo',
component: () => import('/@/views/demo/comp/count-to/index.vue'), component: () => import('@/views/demo/comp/count-to/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.countTo'), title: t('routes.demo.comp.countTo'),
}, },
@@ -311,7 +311,7 @@ const comp: AppRouteModule = {
{ {
path: 'basic', path: 'basic',
name: 'BasicTreeDemo', name: 'BasicTreeDemo',
component: () => import('/@/views/demo/tree/index.vue'), component: () => import('@/views/demo/tree/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.treeBasic'), title: t('routes.demo.comp.treeBasic'),
}, },
@@ -319,7 +319,7 @@ const comp: AppRouteModule = {
{ {
path: 'editTree', path: 'editTree',
name: 'EditTreeDemo', name: 'EditTreeDemo',
component: () => import('/@/views/demo/tree/EditTree.vue'), component: () => import('@/views/demo/tree/EditTree.vue'),
meta: { meta: {
title: t('routes.demo.comp.editTree'), title: t('routes.demo.comp.editTree'),
}, },
@@ -327,7 +327,7 @@ const comp: AppRouteModule = {
{ {
path: 'actionTree', path: 'actionTree',
name: 'ActionTreeDemo', name: 'ActionTreeDemo',
component: () => import('/@/views/demo/tree/ActionTree.vue'), component: () => import('@/views/demo/tree/ActionTree.vue'),
meta: { meta: {
title: t('routes.demo.comp.actionTree'), title: t('routes.demo.comp.actionTree'),
}, },
@@ -346,7 +346,7 @@ const comp: AppRouteModule = {
children: [ children: [
{ {
path: 'json', path: 'json',
component: () => import('/@/views/demo/editor/json/index.vue'), component: () => import('@/views/demo/editor/json/index.vue'),
name: 'JsonEditorDemo', name: 'JsonEditorDemo',
meta: { meta: {
title: t('routes.demo.editor.jsonEditor'), title: t('routes.demo.editor.jsonEditor'),
@@ -364,7 +364,7 @@ const comp: AppRouteModule = {
{ {
path: 'index', path: 'index',
name: 'MarkDownBasicDemo', name: 'MarkDownBasicDemo',
component: () => import('/@/views/demo/editor/markdown/index.vue'), component: () => import('@/views/demo/editor/markdown/index.vue'),
meta: { meta: {
title: t('routes.demo.editor.tinymceBasic'), title: t('routes.demo.editor.tinymceBasic'),
}, },
@@ -372,7 +372,7 @@ const comp: AppRouteModule = {
{ {
path: 'editor', path: 'editor',
name: 'MarkDownFormDemo', name: 'MarkDownFormDemo',
component: () => import('/@/views/demo/editor/markdown/Editor.vue'), component: () => import('@/views/demo/editor/markdown/Editor.vue'),
meta: { meta: {
title: t('routes.demo.editor.tinymceForm'), title: t('routes.demo.editor.tinymceForm'),
}, },
@@ -392,7 +392,7 @@ const comp: AppRouteModule = {
{ {
path: 'index', path: 'index',
name: 'TinymceBasicDemo', name: 'TinymceBasicDemo',
component: () => import('/@/views/demo/editor/tinymce/index.vue'), component: () => import('@/views/demo/editor/tinymce/index.vue'),
meta: { meta: {
title: t('routes.demo.editor.tinymceBasic'), title: t('routes.demo.editor.tinymceBasic'),
}, },
@@ -400,7 +400,7 @@ const comp: AppRouteModule = {
{ {
path: 'editor', path: 'editor',
name: 'TinymceFormDemo', name: 'TinymceFormDemo',
component: () => import('/@/views/demo/editor/tinymce/Editor.vue'), component: () => import('@/views/demo/editor/tinymce/Editor.vue'),
meta: { meta: {
title: t('routes.demo.editor.tinymceForm'), title: t('routes.demo.editor.tinymceForm'),
}, },
@@ -421,7 +421,7 @@ const comp: AppRouteModule = {
{ {
path: 'basic', path: 'basic',
name: 'BasicScrollDemo', name: 'BasicScrollDemo',
component: () => import('/@/views/demo/comp/scroll/index.vue'), component: () => import('@/views/demo/comp/scroll/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.scrollBasic'), title: t('routes.demo.comp.scrollBasic'),
}, },
@@ -429,7 +429,7 @@ const comp: AppRouteModule = {
{ {
path: 'action', path: 'action',
name: 'ActionScrollDemo', name: 'ActionScrollDemo',
component: () => import('/@/views/demo/comp/scroll/Action.vue'), component: () => import('@/views/demo/comp/scroll/Action.vue'),
meta: { meta: {
title: t('routes.demo.comp.scrollAction'), title: t('routes.demo.comp.scrollAction'),
}, },
@@ -437,7 +437,7 @@ const comp: AppRouteModule = {
{ {
path: 'virtualScroll', path: 'virtualScroll',
name: 'VirtualScrollDemo', name: 'VirtualScrollDemo',
component: () => import('/@/views/demo/comp/scroll/VirtualScroll.vue'), component: () => import('@/views/demo/comp/scroll/VirtualScroll.vue'),
meta: { meta: {
title: t('routes.demo.comp.virtualScroll'), title: t('routes.demo.comp.virtualScroll'),
}, },
@@ -448,7 +448,7 @@ const comp: AppRouteModule = {
{ {
path: 'modal', path: 'modal',
name: 'ModalDemo', name: 'ModalDemo',
component: () => import('/@/views/demo/comp/modal/index.vue'), component: () => import('@/views/demo/comp/modal/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.modal'), title: t('routes.demo.comp.modal'),
}, },
@@ -456,7 +456,7 @@ const comp: AppRouteModule = {
{ {
path: 'drawer', path: 'drawer',
name: 'DrawerDemo', name: 'DrawerDemo',
component: () => import('/@/views/demo/comp/drawer/index.vue'), component: () => import('@/views/demo/comp/drawer/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.drawer'), title: t('routes.demo.comp.drawer'),
}, },
@@ -464,7 +464,7 @@ const comp: AppRouteModule = {
{ {
path: 'desc', path: 'desc',
name: 'DescDemo', name: 'DescDemo',
component: () => import('/@/views/demo/comp/desc/index.vue'), component: () => import('@/views/demo/comp/desc/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.desc'), title: t('routes.demo.comp.desc'),
}, },
@@ -482,7 +482,7 @@ const comp: AppRouteModule = {
{ {
path: 'drag', path: 'drag',
name: 'VerifyDragDemo', name: 'VerifyDragDemo',
component: () => import('/@/views/demo/comp/verify/index.vue'), component: () => import('@/views/demo/comp/verify/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.verifyDrag'), title: t('routes.demo.comp.verifyDrag'),
}, },
@@ -490,7 +490,7 @@ const comp: AppRouteModule = {
{ {
path: 'rotate', path: 'rotate',
name: 'VerifyRotateDemo', name: 'VerifyRotateDemo',
component: () => import('/@/views/demo/comp/verify/Rotate.vue'), component: () => import('@/views/demo/comp/verify/Rotate.vue'),
meta: { meta: {
title: t('routes.demo.comp.verifyRotate'), title: t('routes.demo.comp.verifyRotate'),
}, },
@@ -502,7 +502,7 @@ const comp: AppRouteModule = {
{ {
path: 'qrcode', path: 'qrcode',
name: 'QrCodeDemo', name: 'QrCodeDemo',
component: () => import('/@/views/demo/comp/qrcode/index.vue'), component: () => import('@/views/demo/comp/qrcode/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.qrcode'), title: t('routes.demo.comp.qrcode'),
}, },
@@ -510,7 +510,7 @@ const comp: AppRouteModule = {
{ {
path: 'strength-meter', path: 'strength-meter',
name: 'StrengthMeterDemo', name: 'StrengthMeterDemo',
component: () => import('/@/views/demo/comp/strength-meter/index.vue'), component: () => import('@/views/demo/comp/strength-meter/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.strength'), title: t('routes.demo.comp.strength'),
}, },
@@ -518,7 +518,7 @@ const comp: AppRouteModule = {
{ {
path: 'upload', path: 'upload',
name: 'UploadDemo', name: 'UploadDemo',
component: () => import('/@/views/demo/comp/upload/index.vue'), component: () => import('@/views/demo/comp/upload/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.upload'), title: t('routes.demo.comp.upload'),
}, },
@@ -526,7 +526,7 @@ const comp: AppRouteModule = {
{ {
path: 'loading', path: 'loading',
name: 'LoadingDemo', name: 'LoadingDemo',
component: () => import('/@/views/demo/comp/loading/index.vue'), component: () => import('@/views/demo/comp/loading/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.loading'), title: t('routes.demo.comp.loading'),
}, },
@@ -534,7 +534,7 @@ const comp: AppRouteModule = {
{ {
path: 'cardList', path: 'cardList',
name: 'CardListDemo', name: 'CardListDemo',
component: () => import('/@/views/demo/comp/card-list/index.vue'), component: () => import('@/views/demo/comp/card-list/index.vue'),
meta: { meta: {
title: t('routes.demo.comp.cardList'), title: t('routes.demo.comp.cardList'),
}, },

View File

@@ -1,7 +1,7 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { getParentLayout, LAYOUT } from '/@/router/constant'; import { getParentLayout, LAYOUT } from '@/router/constant';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
const feat: AppRouteModule = { const feat: AppRouteModule = {
path: '/feat', path: '/feat',
@@ -18,7 +18,7 @@ const feat: AppRouteModule = {
{ {
path: 'icon', path: 'icon',
name: 'IconDemo', name: 'IconDemo',
component: () => import('/@/views/demo/feat/icon/index.vue'), component: () => import('@/views/demo/feat/icon/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.icon'), title: t('routes.demo.feat.icon'),
}, },
@@ -26,7 +26,7 @@ const feat: AppRouteModule = {
{ {
path: 'ws', path: 'ws',
name: 'WebSocket', name: 'WebSocket',
component: () => import('/@/views/demo/feat/ws/index.vue'), component: () => import('@/views/demo/feat/ws/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.ws'), title: t('routes.demo.feat.ws'),
}, },
@@ -35,7 +35,7 @@ const feat: AppRouteModule = {
path: 'request', path: 'request',
name: 'RequestDemo', name: 'RequestDemo',
// @ts-ignore // @ts-ignore
component: () => import('/@/views/demo/feat/request-demo/index.vue'), component: () => import('@/views/demo/feat/request-demo/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.requestDemo'), title: t('routes.demo.feat.requestDemo'),
}, },
@@ -43,7 +43,7 @@ const feat: AppRouteModule = {
{ {
path: 'session-timeout', path: 'session-timeout',
name: 'SessionTimeout', name: 'SessionTimeout',
component: () => import('/@/views/demo/feat/session-timeout/index.vue'), component: () => import('@/views/demo/feat/session-timeout/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.sessionTimeout'), title: t('routes.demo.feat.sessionTimeout'),
}, },
@@ -51,7 +51,7 @@ const feat: AppRouteModule = {
{ {
path: 'print', path: 'print',
name: 'Print', name: 'Print',
component: () => import('/@/views/demo/feat/print/index.vue'), component: () => import('@/views/demo/feat/print/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.print'), title: t('routes.demo.feat.print'),
}, },
@@ -59,7 +59,7 @@ const feat: AppRouteModule = {
{ {
path: 'tabs', path: 'tabs',
name: 'TabsDemo', name: 'TabsDemo',
component: () => import('/@/views/demo/feat/tabs/index.vue'), component: () => import('@/views/demo/feat/tabs/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.tabs'), title: t('routes.demo.feat.tabs'),
hideChildrenInMenu: true, hideChildrenInMenu: true,
@@ -68,7 +68,7 @@ const feat: AppRouteModule = {
{ {
path: 'detail/:id', path: 'detail/:id',
name: 'TabDetail', name: 'TabDetail',
component: () => import('/@/views/demo/feat/tabs/TabDetail.vue'), component: () => import('@/views/demo/feat/tabs/TabDetail.vue'),
meta: { meta: {
currentActiveMenu: '/feat/tabs', currentActiveMenu: '/feat/tabs',
title: t('routes.demo.feat.tabDetail'), title: t('routes.demo.feat.tabDetail'),
@@ -92,7 +92,7 @@ const feat: AppRouteModule = {
{ {
path: 'flat', path: 'flat',
name: 'BreadcrumbFlatDemo', name: 'BreadcrumbFlatDemo',
component: () => import('/@/views/demo/feat/breadcrumb/FlatList.vue'), component: () => import('@/views/demo/feat/breadcrumb/FlatList.vue'),
meta: { meta: {
title: t('routes.demo.feat.breadcrumbFlat'), title: t('routes.demo.feat.breadcrumbFlat'),
}, },
@@ -100,7 +100,7 @@ const feat: AppRouteModule = {
{ {
path: 'flatDetail', path: 'flatDetail',
name: 'BreadcrumbFlatDetailDemo', name: 'BreadcrumbFlatDetailDemo',
component: () => import('/@/views/demo/feat/breadcrumb/FlatListDetail.vue'), component: () => import('@/views/demo/feat/breadcrumb/FlatListDetail.vue'),
meta: { meta: {
title: t('routes.demo.feat.breadcrumbFlatDetail'), title: t('routes.demo.feat.breadcrumbFlatDetail'),
hideMenu: true, hideMenu: true,
@@ -111,7 +111,7 @@ const feat: AppRouteModule = {
{ {
path: 'children', path: 'children',
name: 'BreadcrumbChildrenDemo', name: 'BreadcrumbChildrenDemo',
component: () => import('/@/views/demo/feat/breadcrumb/ChildrenList.vue'), component: () => import('@/views/demo/feat/breadcrumb/ChildrenList.vue'),
meta: { meta: {
title: t('routes.demo.feat.breadcrumbChildren'), title: t('routes.demo.feat.breadcrumbChildren'),
}, },
@@ -119,7 +119,7 @@ const feat: AppRouteModule = {
{ {
path: 'childrenDetail', path: 'childrenDetail',
name: 'BreadcrumbChildrenDetailDemo', name: 'BreadcrumbChildrenDetailDemo',
component: () => import('/@/views/demo/feat/breadcrumb/ChildrenListDetail.vue'), component: () => import('@/views/demo/feat/breadcrumb/ChildrenListDetail.vue'),
meta: { meta: {
currentActiveMenu: '/feat/breadcrumb/children', currentActiveMenu: '/feat/breadcrumb/children',
title: t('routes.demo.feat.breadcrumbChildrenDetail'), title: t('routes.demo.feat.breadcrumbChildrenDetail'),
@@ -135,7 +135,7 @@ const feat: AppRouteModule = {
{ {
path: 'context-menu', path: 'context-menu',
name: 'ContextMenuDemo', name: 'ContextMenuDemo',
component: () => import('/@/views/demo/feat/context-menu/index.vue'), component: () => import('@/views/demo/feat/context-menu/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.contextMenu'), title: t('routes.demo.feat.contextMenu'),
}, },
@@ -143,7 +143,7 @@ const feat: AppRouteModule = {
{ {
path: 'download', path: 'download',
name: 'DownLoadDemo', name: 'DownLoadDemo',
component: () => import('/@/views/demo/feat/download/index.vue'), component: () => import('@/views/demo/feat/download/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.download'), title: t('routes.demo.feat.download'),
}, },
@@ -151,7 +151,7 @@ const feat: AppRouteModule = {
{ {
path: 'click-out-side', path: 'click-out-side',
name: 'ClickOutSideDemo', name: 'ClickOutSideDemo',
component: () => import('/@/views/demo/feat/click-out-side/index.vue'), component: () => import('@/views/demo/feat/click-out-side/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.clickOutSide'), title: t('routes.demo.feat.clickOutSide'),
}, },
@@ -159,7 +159,7 @@ const feat: AppRouteModule = {
{ {
path: 'img-preview', path: 'img-preview',
name: 'ImgPreview', name: 'ImgPreview',
component: () => import('/@/views/demo/feat/img-preview/index.vue'), component: () => import('@/views/demo/feat/img-preview/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.imgPreview'), title: t('routes.demo.feat.imgPreview'),
}, },
@@ -167,7 +167,7 @@ const feat: AppRouteModule = {
{ {
path: 'copy', path: 'copy',
name: 'CopyDemo', name: 'CopyDemo',
component: () => import('/@/views/demo/feat/copy/index.vue'), component: () => import('@/views/demo/feat/copy/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.copy'), title: t('routes.demo.feat.copy'),
}, },
@@ -175,7 +175,7 @@ const feat: AppRouteModule = {
{ {
path: 'ellipsis', path: 'ellipsis',
name: 'EllipsisDemo', name: 'EllipsisDemo',
component: () => import('/@/views/demo/feat/ellipsis/index.vue'), component: () => import('@/views/demo/feat/ellipsis/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.ellipsis'), title: t('routes.demo.feat.ellipsis'),
}, },
@@ -183,7 +183,7 @@ const feat: AppRouteModule = {
{ {
path: 'msg', path: 'msg',
name: 'MsgDemo', name: 'MsgDemo',
component: () => import('/@/views/demo/feat/msg/index.vue'), component: () => import('@/views/demo/feat/msg/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.msg'), title: t('routes.demo.feat.msg'),
}, },
@@ -191,7 +191,7 @@ const feat: AppRouteModule = {
{ {
path: 'watermark', path: 'watermark',
name: 'WatermarkDemo', name: 'WatermarkDemo',
component: () => import('/@/views/demo/feat/watermark/index.vue'), component: () => import('@/views/demo/feat/watermark/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.watermark'), title: t('routes.demo.feat.watermark'),
}, },
@@ -199,7 +199,7 @@ const feat: AppRouteModule = {
{ {
path: 'ripple', path: 'ripple',
name: 'RippleDemo', name: 'RippleDemo',
component: () => import('/@/views/demo/feat/ripple/index.vue'), component: () => import('@/views/demo/feat/ripple/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.ripple'), title: t('routes.demo.feat.ripple'),
}, },
@@ -207,7 +207,7 @@ const feat: AppRouteModule = {
{ {
path: 'full-screen', path: 'full-screen',
name: 'FullScreenDemo', name: 'FullScreenDemo',
component: () => import('/@/views/demo/feat/full-screen/index.vue'), component: () => import('@/views/demo/feat/full-screen/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.fullScreen'), title: t('routes.demo.feat.fullScreen'),
}, },
@@ -215,7 +215,7 @@ const feat: AppRouteModule = {
{ {
path: '/error-log', path: '/error-log',
name: 'ErrorLog', name: 'ErrorLog',
component: () => import('/@/views/sys/error-log/index.vue'), component: () => import('@/views/sys/error-log/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.errorLog'), title: t('routes.demo.feat.errorLog'),
}, },
@@ -234,7 +234,7 @@ const feat: AppRouteModule = {
{ {
path: 'customExport', path: 'customExport',
name: 'CustomExport', name: 'CustomExport',
component: () => import('/@/views/demo/excel/CustomExport.vue'), component: () => import('@/views/demo/excel/CustomExport.vue'),
meta: { meta: {
title: t('routes.demo.excel.customExport'), title: t('routes.demo.excel.customExport'),
}, },
@@ -242,7 +242,7 @@ const feat: AppRouteModule = {
{ {
path: 'jsonExport', path: 'jsonExport',
name: 'JsonExport', name: 'JsonExport',
component: () => import('/@/views/demo/excel/JsonExport.vue'), component: () => import('@/views/demo/excel/JsonExport.vue'),
meta: { meta: {
title: t('routes.demo.excel.jsonExport'), title: t('routes.demo.excel.jsonExport'),
}, },
@@ -250,7 +250,7 @@ const feat: AppRouteModule = {
{ {
path: 'arrayExport', path: 'arrayExport',
name: 'ArrayExport', name: 'ArrayExport',
component: () => import('/@/views/demo/excel/ArrayExport.vue'), component: () => import('@/views/demo/excel/ArrayExport.vue'),
meta: { meta: {
title: t('routes.demo.excel.arrayExport'), title: t('routes.demo.excel.arrayExport'),
}, },
@@ -258,7 +258,7 @@ const feat: AppRouteModule = {
{ {
path: 'importExcel', path: 'importExcel',
name: 'ImportExcel', name: 'ImportExcel',
component: () => import('/@/views/demo/excel/ImportExcel.vue'), component: () => import('@/views/demo/excel/ImportExcel.vue'),
meta: { meta: {
title: t('routes.demo.excel.importExcel'), title: t('routes.demo.excel.importExcel'),
}, },
@@ -268,7 +268,7 @@ const feat: AppRouteModule = {
{ {
path: 'testTab/:id', path: 'testTab/:id',
name: 'TestTab', name: 'TestTab',
component: () => import('/@/views/demo/feat/tab-params/index.vue'), component: () => import('@/views/demo/feat/tab-params/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.tab'), title: t('routes.demo.feat.tab'),
carryParam: true, carryParam: true,
@@ -278,7 +278,7 @@ const feat: AppRouteModule = {
{ {
path: 'testTab/id1', path: 'testTab/id1',
name: 'TestTab1', name: 'TestTab1',
component: () => import('/@/views/demo/feat/tab-params/index.vue'), component: () => import('@/views/demo/feat/tab-params/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.tab1'), title: t('routes.demo.feat.tab1'),
carryParam: true, carryParam: true,
@@ -288,7 +288,7 @@ const feat: AppRouteModule = {
{ {
path: 'testTab/id2', path: 'testTab/id2',
name: 'TestTab2', name: 'TestTab2',
component: () => import('/@/views/demo/feat/tab-params/index.vue'), component: () => import('@/views/demo/feat/tab-params/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.tab2'), title: t('routes.demo.feat.tab2'),
carryParam: true, carryParam: true,
@@ -309,7 +309,7 @@ const feat: AppRouteModule = {
{ {
path: 'sub1', path: 'sub1',
name: 'TestParam_1', name: 'TestParam_1',
component: () => import('/@/views/demo/feat/menu-params/index.vue'), component: () => import('@/views/demo/feat/menu-params/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.menu1'), title: t('routes.demo.feat.menu1'),
ignoreKeepAlive: true, ignoreKeepAlive: true,
@@ -318,7 +318,7 @@ const feat: AppRouteModule = {
{ {
path: 'sub2', path: 'sub2',
name: 'TestParam_2', name: 'TestParam_2',
component: () => import('/@/views/demo/feat/menu-params/index.vue'), component: () => import('@/views/demo/feat/menu-params/index.vue'),
meta: { meta: {
title: t('routes.demo.feat.menu2'), title: t('routes.demo.feat.menu2'),
ignoreKeepAlive: true, ignoreKeepAlive: true,

View File

@@ -1,7 +1,7 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '/@/router/constant'; import { LAYOUT } from '@/router/constant';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
const charts: AppRouteModule = { const charts: AppRouteModule = {
path: '/flow', path: '/flow',
@@ -17,7 +17,7 @@ const charts: AppRouteModule = {
{ {
path: 'flowChart', path: 'flowChart',
name: 'flowChartDemo', name: 'flowChartDemo',
component: () => import('/@/views/demo/comp/flow-chart/index.vue'), component: () => import('@/views/demo/comp/flow-chart/index.vue'),
meta: { meta: {
title: t('routes.demo.flow.flowChart'), title: t('routes.demo.flow.flowChart'),
}, },

View File

@@ -1,9 +1,9 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '/@/router/constant'; import { LAYOUT } from '@/router/constant';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
const IFrame = () => import('/@/views/sys/iframe/FrameBlank.vue'); const IFrame = () => import('@/views/sys/iframe/FrameBlank.vue');
const iframe: AppRouteModule = { const iframe: AppRouteModule = {
path: '/frame', path: '/frame',

View File

@@ -1,7 +1,7 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { getParentLayout, LAYOUT } from '/@/router/constant'; import { getParentLayout, LAYOUT } from '@/router/constant';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
const permission: AppRouteModule = { const permission: AppRouteModule = {
path: '/level', path: '/level',
@@ -36,7 +36,7 @@ const permission: AppRouteModule = {
{ {
path: 'menu1-1-1', path: 'menu1-1-1',
name: 'Menu111Demo', name: 'Menu111Demo',
component: () => import('/@/views/demo/level/Menu111.vue'), component: () => import('@/views/demo/level/Menu111.vue'),
meta: { meta: {
title: 'Menu111', title: 'Menu111',
}, },
@@ -46,7 +46,7 @@ const permission: AppRouteModule = {
{ {
path: 'menu1-2', path: 'menu1-2',
name: 'Menu12Demo', name: 'Menu12Demo',
component: () => import('/@/views/demo/level/Menu12.vue'), component: () => import('@/views/demo/level/Menu12.vue'),
meta: { meta: {
title: 'Menu1-2', title: 'Menu1-2',
}, },
@@ -56,7 +56,7 @@ const permission: AppRouteModule = {
{ {
path: 'menu2', path: 'menu2',
name: 'Menu2Demo', name: 'Menu2Demo',
component: () => import('/@/views/demo/level/Menu2.vue'), component: () => import('@/views/demo/level/Menu2.vue'),
meta: { meta: {
title: 'Menu2', title: 'Menu2',
// ignoreKeepAlive: true, // ignoreKeepAlive: true,

View File

@@ -1,10 +1,10 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { getParentLayout, LAYOUT } from '/@/router/constant'; import { getParentLayout, LAYOUT } from '@/router/constant';
import { ExceptionEnum } from '/@/enums/exceptionEnum'; import { ExceptionEnum } from '@/enums/exceptionEnum';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
const ExceptionPage = () => import('/@/views/sys/exception/Exception.vue'); const ExceptionPage = () => import('@/views/sys/exception/Exception.vue');
const page: AppRouteModule = { const page: AppRouteModule = {
path: '/page-demo', path: '/page-demo',
@@ -30,7 +30,7 @@ const page: AppRouteModule = {
{ {
path: 'basic', path: 'basic',
name: 'FormBasicPage', name: 'FormBasicPage',
component: () => import('/@/views/demo/page/form/basic/index.vue'), component: () => import('@/views/demo/page/form/basic/index.vue'),
meta: { meta: {
title: t('routes.demo.page.formBasic'), title: t('routes.demo.page.formBasic'),
}, },
@@ -38,7 +38,7 @@ const page: AppRouteModule = {
{ {
path: 'step', path: 'step',
name: 'FormStepPage', name: 'FormStepPage',
component: () => import('/@/views/demo/page/form/step/index.vue'), component: () => import('@/views/demo/page/form/step/index.vue'),
meta: { meta: {
title: t('routes.demo.page.formStep'), title: t('routes.demo.page.formStep'),
}, },
@@ -46,7 +46,7 @@ const page: AppRouteModule = {
{ {
path: 'high', path: 'high',
name: 'FormHightPage', name: 'FormHightPage',
component: () => import('/@/views/demo/page/form/high/index.vue'), component: () => import('@/views/demo/page/form/high/index.vue'),
meta: { meta: {
title: t('routes.demo.page.formHigh'), title: t('routes.demo.page.formHigh'),
}, },
@@ -67,7 +67,7 @@ const page: AppRouteModule = {
{ {
path: 'basic', path: 'basic',
name: 'DescBasicPage', name: 'DescBasicPage',
component: () => import('/@/views/demo/page/desc/basic/index.vue'), component: () => import('@/views/demo/page/desc/basic/index.vue'),
meta: { meta: {
title: t('routes.demo.page.descBasic'), title: t('routes.demo.page.descBasic'),
}, },
@@ -75,7 +75,7 @@ const page: AppRouteModule = {
{ {
path: 'high', path: 'high',
name: 'DescHighPage', name: 'DescHighPage',
component: () => import('/@/views/demo/page/desc/high/index.vue'), component: () => import('@/views/demo/page/desc/high/index.vue'),
meta: { meta: {
title: t('routes.demo.page.descHigh'), title: t('routes.demo.page.descHigh'),
}, },
@@ -98,7 +98,7 @@ const page: AppRouteModule = {
{ {
path: 'success', path: 'success',
name: 'ResultSuccessPage', name: 'ResultSuccessPage',
component: () => import('/@/views/demo/page/result/success/index.vue'), component: () => import('@/views/demo/page/result/success/index.vue'),
meta: { meta: {
title: t('routes.demo.page.resultSuccess'), title: t('routes.demo.page.resultSuccess'),
}, },
@@ -106,7 +106,7 @@ const page: AppRouteModule = {
{ {
path: 'fail', path: 'fail',
name: 'ResultFailPage', name: 'ResultFailPage',
component: () => import('/@/views/demo/page/result/fail/index.vue'), component: () => import('@/views/demo/page/result/fail/index.vue'),
meta: { meta: {
title: t('routes.demo.page.resultFail'), title: t('routes.demo.page.resultFail'),
}, },
@@ -128,7 +128,7 @@ const page: AppRouteModule = {
{ {
path: 'center', path: 'center',
name: 'AccountCenterPage', name: 'AccountCenterPage',
component: () => import('/@/views/demo/page/account/center/index.vue'), component: () => import('@/views/demo/page/account/center/index.vue'),
meta: { meta: {
title: t('routes.demo.page.accountCenter'), title: t('routes.demo.page.accountCenter'),
}, },
@@ -136,7 +136,7 @@ const page: AppRouteModule = {
{ {
path: 'setting', path: 'setting',
name: 'AccountSettingPage', name: 'AccountSettingPage',
component: () => import('/@/views/demo/page/account/setting/index.vue'), component: () => import('@/views/demo/page/account/setting/index.vue'),
meta: { meta: {
title: t('routes.demo.page.accountSetting'), title: t('routes.demo.page.accountSetting'),
}, },
@@ -225,7 +225,7 @@ const page: AppRouteModule = {
{ {
path: 'basic', path: 'basic',
name: 'ListBasicPage', name: 'ListBasicPage',
component: () => import('/@/views/demo/page/list/basic/index.vue'), component: () => import('@/views/demo/page/list/basic/index.vue'),
meta: { meta: {
title: t('routes.demo.page.listBasic'), title: t('routes.demo.page.listBasic'),
}, },
@@ -233,7 +233,7 @@ const page: AppRouteModule = {
{ {
path: 'card', path: 'card',
name: 'ListCardPage', name: 'ListCardPage',
component: () => import('/@/views/demo/page/list/card/index.vue'), component: () => import('@/views/demo/page/list/card/index.vue'),
meta: { meta: {
title: t('routes.demo.page.listCard'), title: t('routes.demo.page.listCard'),
}, },
@@ -241,7 +241,7 @@ const page: AppRouteModule = {
{ {
path: 'search', path: 'search',
name: 'ListSearchPage', name: 'ListSearchPage',
component: () => import('/@/views/demo/page/list/search/index.vue'), component: () => import('@/views/demo/page/list/search/index.vue'),
meta: { meta: {
title: t('routes.demo.page.listSearch'), title: t('routes.demo.page.listSearch'),
}, },

View File

@@ -1,8 +1,8 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { getParentLayout, LAYOUT } from '/@/router/constant'; import { getParentLayout, LAYOUT } from '@/router/constant';
import { RoleEnum } from '/@/enums/roleEnum'; import { RoleEnum } from '@/enums/roleEnum';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
const permission: AppRouteModule = { const permission: AppRouteModule = {
path: '/permission', path: '/permission',
@@ -27,7 +27,7 @@ const permission: AppRouteModule = {
{ {
path: 'page', path: 'page',
name: 'FrontPageAuth', name: 'FrontPageAuth',
component: () => import('/@/views/demo/permission/front/index.vue'), component: () => import('@/views/demo/permission/front/index.vue'),
meta: { meta: {
title: t('routes.demo.permission.frontPage'), title: t('routes.demo.permission.frontPage'),
}, },
@@ -35,7 +35,7 @@ const permission: AppRouteModule = {
{ {
path: 'btn', path: 'btn',
name: 'FrontBtnAuth', name: 'FrontBtnAuth',
component: () => import('/@/views/demo/permission/front/Btn.vue'), component: () => import('@/views/demo/permission/front/Btn.vue'),
meta: { meta: {
title: t('routes.demo.permission.frontBtn'), title: t('routes.demo.permission.frontBtn'),
}, },
@@ -43,7 +43,7 @@ const permission: AppRouteModule = {
{ {
path: 'auth-pageA', path: 'auth-pageA',
name: 'FrontAuthPageA', name: 'FrontAuthPageA',
component: () => import('/@/views/demo/permission/front/AuthPageA.vue'), component: () => import('@/views/demo/permission/front/AuthPageA.vue'),
meta: { meta: {
title: t('routes.demo.permission.frontTestA'), title: t('routes.demo.permission.frontTestA'),
roles: [RoleEnum.SUPER], roles: [RoleEnum.SUPER],
@@ -52,7 +52,7 @@ const permission: AppRouteModule = {
{ {
path: 'auth-pageB', path: 'auth-pageB',
name: 'FrontAuthPageB', name: 'FrontAuthPageB',
component: () => import('/@/views/demo/permission/front/AuthPageB.vue'), component: () => import('@/views/demo/permission/front/AuthPageB.vue'),
meta: { meta: {
title: t('routes.demo.permission.frontTestB'), title: t('routes.demo.permission.frontTestB'),
roles: [RoleEnum.TEST], roles: [RoleEnum.TEST],
@@ -71,7 +71,7 @@ const permission: AppRouteModule = {
{ {
path: 'page', path: 'page',
name: 'BackAuthPage', name: 'BackAuthPage',
component: () => import('/@/views/demo/permission/back/index.vue'), component: () => import('@/views/demo/permission/back/index.vue'),
meta: { meta: {
title: t('routes.demo.permission.backPage'), title: t('routes.demo.permission.backPage'),
}, },
@@ -79,7 +79,7 @@ const permission: AppRouteModule = {
{ {
path: 'btn', path: 'btn',
name: 'BackAuthBtn', name: 'BackAuthBtn',
component: () => import('/@/views/demo/permission/back/Btn.vue'), component: () => import('@/views/demo/permission/back/Btn.vue'),
meta: { meta: {
title: t('routes.demo.permission.backBtn'), title: t('routes.demo.permission.backBtn'),
}, },

View File

@@ -1,7 +1,7 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '/@/router/constant'; import { LAYOUT } from '@/router/constant';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
const setup: AppRouteModule = { const setup: AppRouteModule = {
path: '/setup', path: '/setup',
@@ -18,7 +18,7 @@ const setup: AppRouteModule = {
{ {
path: 'index', path: 'index',
name: 'SetupDemoPage', name: 'SetupDemoPage',
component: () => import('/@/views/demo/setup/index.vue'), component: () => import('@/views/demo/setup/index.vue'),
meta: { meta: {
title: t('routes.demo.setup.page'), title: t('routes.demo.setup.page'),
icon: 'whh:paintroll', icon: 'whh:paintroll',

View File

@@ -1,7 +1,7 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '/@/router/constant'; import { LAYOUT } from '@/router/constant';
import { t } from '/@/hooks/web/useI18n'; import { t } from '@/hooks/web/useI18n';
const system: AppRouteModule = { const system: AppRouteModule = {
path: '/system', path: '/system',
@@ -21,7 +21,7 @@ const system: AppRouteModule = {
title: t('routes.demo.system.account'), title: t('routes.demo.system.account'),
ignoreKeepAlive: false, ignoreKeepAlive: false,
}, },
component: () => import('/@/views/demo/system/account/index.vue'), component: () => import('@/views/demo/system/account/index.vue'),
}, },
{ {
path: 'vxeTableAccount', path: 'vxeTableAccount',
@@ -30,7 +30,7 @@ const system: AppRouteModule = {
title: t('routes.demo.system.vxeTableAccount'), title: t('routes.demo.system.vxeTableAccount'),
ignoreKeepAlive: false, ignoreKeepAlive: false,
}, },
component: () => import('/@/views/demo/system/vxe-account/index.vue'), component: () => import('@/views/demo/system/vxe-account/index.vue'),
}, },
{ {
path: 'account_detail/:id', path: 'account_detail/:id',
@@ -42,7 +42,7 @@ const system: AppRouteModule = {
showMenu: false, showMenu: false,
currentActiveMenu: '/system/account', currentActiveMenu: '/system/account',
}, },
component: () => import('/@/views/demo/system/account/AccountDetail.vue'), component: () => import('@/views/demo/system/account/AccountDetail.vue'),
}, },
{ {
path: 'role', path: 'role',
@@ -51,7 +51,7 @@ const system: AppRouteModule = {
title: t('routes.demo.system.role'), title: t('routes.demo.system.role'),
ignoreKeepAlive: true, ignoreKeepAlive: true,
}, },
component: () => import('/@/views/demo/system/role/index.vue'), component: () => import('@/views/demo/system/role/index.vue'),
}, },
{ {
@@ -61,7 +61,7 @@ const system: AppRouteModule = {
title: t('routes.demo.system.menu'), title: t('routes.demo.system.menu'),
ignoreKeepAlive: true, ignoreKeepAlive: true,
}, },
component: () => import('/@/views/demo/system/menu/index.vue'), component: () => import('@/views/demo/system/menu/index.vue'),
}, },
{ {
path: 'dept', path: 'dept',
@@ -70,7 +70,7 @@ const system: AppRouteModule = {
title: t('routes.demo.system.dept'), title: t('routes.demo.system.dept'),
ignoreKeepAlive: true, ignoreKeepAlive: true,
}, },
component: () => import('/@/views/demo/system/dept/index.vue'), component: () => import('@/views/demo/system/dept/index.vue'),
}, },
{ {
path: 'changePassword', path: 'changePassword',
@@ -79,7 +79,7 @@ const system: AppRouteModule = {
title: t('routes.demo.system.password'), title: t('routes.demo.system.password'),
ignoreKeepAlive: true, ignoreKeepAlive: true,
}, },
component: () => import('/@/views/demo/system/password/index.vue'), component: () => import('@/views/demo/system/password/index.vue'),
}, },
], ],
}; };

View File

@@ -1,6 +1,6 @@
import type { AppRouteModule } from '/@/router/types'; import type { AppRouteModule } from '@/router/types';
import { LAYOUT } from '/@/router/constant'; import { LAYOUT } from '@/router/constant';
const permission: AppRouteModule = { const permission: AppRouteModule = {
path: '/form-designer', path: '/form-designer',
@@ -18,7 +18,7 @@ const permission: AppRouteModule = {
meta: { meta: {
title: '表单设计', title: '表单设计',
}, },
component: () => import('/@/views/form-design/index.vue'), component: () => import('@/views/form-design/index.vue'),
}, },
{ {
path: 'example1', path: 'example1',
@@ -26,7 +26,7 @@ const permission: AppRouteModule = {
meta: { meta: {
title: '示例', title: '示例',
}, },
component: () => import('/@/views/form-design/examples/baseForm.vue'), component: () => import('@/views/form-design/examples/baseForm.vue'),
}, },
], ],
}; };

View File

@@ -1,5 +1,5 @@
import type { RouteRecordRaw, RouteMeta } from 'vue-router'; import type { RouteRecordRaw, RouteMeta } from 'vue-router';
import { RoleEnum } from '/@/enums/roleEnum'; import { RoleEnum } from '@/enums/roleEnum';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
export type Component<T = any> = export type Component<T = any> =

View File

@@ -1,4 +1,4 @@
import { isDevMode } from '/@/utils/env'; import { isDevMode } from '@/utils/env';
// System default cache time, in seconds // System default cache time, in seconds
export const DEFAULT_CACHE_TIME = 60 * 60 * 24 * 7; export const DEFAULT_CACHE_TIME = 60 * 60 * 24 * 7;

View File

@@ -1,5 +1,5 @@
import type { DropMenu } from '../components/Dropdown'; import type { DropMenu } from '../components/Dropdown';
import type { LocaleSetting, LocaleType } from '/#/config'; import type { LocaleSetting, LocaleType } from '#/config';
export const LOCALE: { [key: string]: LocaleType } = { export const LOCALE: { [key: string]: LocaleType } = {
ZH_CN: 'zh_CN', ZH_CN: 'zh_CN',

View File

@@ -1,6 +1,6 @@
import type { ProjectConfig } from '/#/config'; import type { ProjectConfig } from '#/config';
import { MenuTypeEnum, MenuModeEnum, TriggerEnum, MixSidebarTriggerEnum } from '/@/enums/menuEnum'; import { MenuTypeEnum, MenuModeEnum, TriggerEnum, MixSidebarTriggerEnum } from '@/enums/menuEnum';
import { CacheTypeEnum } from '/@/enums/cacheEnum'; import { CacheTypeEnum } from '@/enums/cacheEnum';
import { import {
ContentEnum, ContentEnum,
PermissionModeEnum, PermissionModeEnum,
@@ -8,7 +8,7 @@ import {
RouterTransitionEnum, RouterTransitionEnum,
SettingButtonPositionEnum, SettingButtonPositionEnum,
SessionTimeoutProcessingEnum, SessionTimeoutProcessingEnum,
} from '/@/enums/appEnum'; } from '@/enums/appEnum';
import { import {
SIDE_BAR_BG_COLOR_LIST, SIDE_BAR_BG_COLOR_LIST,
HEADER_PRESET_BG_COLOR_LIST, HEADER_PRESET_BG_COLOR_LIST,

View File

@@ -4,18 +4,18 @@ import type {
MenuSetting, MenuSetting,
TransitionSetting, TransitionSetting,
MultiTabsSetting, MultiTabsSetting,
} from '/#/config'; } from '#/config';
import type { BeforeMiniState, ApiAddress } from '/#/store'; import type { BeforeMiniState, ApiAddress } from '#/store';
import { defineStore } from 'pinia'; import { defineStore } from 'pinia';
import { store } from '/@/store'; import { store } from '@/store';
import { ThemeEnum } from '/@/enums/appEnum'; import { ThemeEnum } from '@/enums/appEnum';
import { APP_DARK_MODE_KEY, PROJ_CFG_KEY, API_ADDRESS } from '/@/enums/cacheEnum'; import { APP_DARK_MODE_KEY, PROJ_CFG_KEY, API_ADDRESS } from '@/enums/cacheEnum';
import { Persistent } from '/@/utils/cache/persistent'; import { Persistent } from '@/utils/cache/persistent';
import { darkMode } from '/@/settings/designSetting'; import { darkMode } from '@/settings/designSetting';
import { resetRouter } from '/@/router'; import { resetRouter } from '@/router';
import { deepMerge } from '/@/utils'; import { deepMerge } from '@/utils';
interface AppState { interface AppState {
darkMode?: ThemeEnum; darkMode?: ThemeEnum;

View File

@@ -1,12 +1,12 @@
import type { ErrorLogInfo } from '/#/store'; import type { ErrorLogInfo } from '#/store';
import { defineStore } from 'pinia'; import { defineStore } from 'pinia';
import { store } from '/@/store'; import { store } from '@/store';
import { formatToDateTime } from '/@/utils/dateUtil'; import { formatToDateTime } from '@/utils/dateUtil';
import projectSetting from '/@/settings/projectSetting'; import projectSetting from '@/settings/projectSetting';
import { ErrorTypeEnum } from '/@/enums/exceptionEnum'; import { ErrorTypeEnum } from '@/enums/exceptionEnum';
export interface ErrorLogState { export interface ErrorLogState {
errorLogInfoList: Nullable<ErrorLogInfo[]>; errorLogInfoList: Nullable<ErrorLogInfo[]>;

View File

@@ -1,11 +1,11 @@
import type { LocaleSetting, LocaleType } from '/#/config'; import type { LocaleSetting, LocaleType } from '#/config';
import { defineStore } from 'pinia'; import { defineStore } from 'pinia';
import { store } from '/@/store'; import { store } from '@/store';
import { LOCALE_KEY } from '/@/enums/cacheEnum'; import { LOCALE_KEY } from '@/enums/cacheEnum';
import { createLocalStorage } from '/@/utils/cache'; import { createLocalStorage } from '@/utils/cache';
import { localeSetting } from '/@/settings/localeSetting'; import { localeSetting } from '@/settings/localeSetting';
const ls = createLocalStorage(); const ls = createLocalStorage();

View File

@@ -1,9 +1,9 @@
import type { LockInfo } from '/#/store'; import type { LockInfo } from '#/store';
import { defineStore } from 'pinia'; import { defineStore } from 'pinia';
import { LOCK_INFO_KEY } from '/@/enums/cacheEnum'; import { LOCK_INFO_KEY } from '@/enums/cacheEnum';
import { Persistent } from '/@/utils/cache/persistent'; import { Persistent } from '@/utils/cache/persistent';
import { useUserStore } from './user'; import { useUserStore } from './user';
interface LockState { interface LockState {

View File

@@ -2,18 +2,18 @@ import type { RouteLocationNormalized, RouteLocationRaw, Router } from 'vue-rout
import { toRaw, unref } from 'vue'; import { toRaw, unref } from 'vue';
import { defineStore } from 'pinia'; import { defineStore } from 'pinia';
import { store } from '/@/store'; import { store } from '@/store';
import { useGo, useRedo } from '/@/hooks/web/usePage'; import { useGo, useRedo } from '@/hooks/web/usePage';
import { Persistent } from '/@/utils/cache/persistent'; import { Persistent } from '@/utils/cache/persistent';
import { PageEnum } from '/@/enums/pageEnum'; import { PageEnum } from '@/enums/pageEnum';
import { PAGE_NOT_FOUND_ROUTE, REDIRECT_ROUTE } from '/@/router/routes/basic'; import { PAGE_NOT_FOUND_ROUTE, REDIRECT_ROUTE } from '@/router/routes/basic';
import { getRawRoute } from '/@/utils'; import { getRawRoute } from '@/utils';
import { MULTIPLE_TABS_KEY } from '/@/enums/cacheEnum'; import { MULTIPLE_TABS_KEY } from '@/enums/cacheEnum';
import projectSetting from '/@/settings/projectSetting'; import projectSetting from '@/settings/projectSetting';
import { useUserStore } from '/@/store/modules/user'; import { useUserStore } from '@/store/modules/user';
export interface MultipleTabState { export interface MultipleTabState {
cacheTabList: Set<string>; cacheTabList: Set<string>;

View File

@@ -1,28 +1,28 @@
import type { AppRouteRecordRaw, Menu } from '/@/router/types'; import type { AppRouteRecordRaw, Menu } from '@/router/types';
import { defineStore } from 'pinia'; import { defineStore } from 'pinia';
import { store } from '/@/store'; import { store } from '@/store';
import { useI18n } from '/@/hooks/web/useI18n'; import { useI18n } from '@/hooks/web/useI18n';
import { useUserStore } from './user'; import { useUserStore } from './user';
import { useAppStoreWithOut } from './app'; import { useAppStoreWithOut } from './app';
import { toRaw } from 'vue'; import { toRaw } from 'vue';
import { transformObjToRoute, flatMultiLevelRoutes } from '/@/router/helper/routeHelper'; import { transformObjToRoute, flatMultiLevelRoutes } from '@/router/helper/routeHelper';
import { transformRouteToMenu } from '/@/router/helper/menuHelper'; import { transformRouteToMenu } from '@/router/helper/menuHelper';
import projectSetting from '/@/settings/projectSetting'; import projectSetting from '@/settings/projectSetting';
import { PermissionModeEnum } from '/@/enums/appEnum'; import { PermissionModeEnum } from '@/enums/appEnum';
import { asyncRoutes } from '/@/router/routes'; import { asyncRoutes } from '@/router/routes';
import { ERROR_LOG_ROUTE, PAGE_NOT_FOUND_ROUTE } from '/@/router/routes/basic'; import { ERROR_LOG_ROUTE, PAGE_NOT_FOUND_ROUTE } from '@/router/routes/basic';
import { filter } from '/@/utils/helper/treeHelper'; import { filter } from '@/utils/helper/treeHelper';
import { getMenuList } from '/@/api/sys/menu'; import { getMenuList } from '@/api/sys/menu';
import { getPermCode } from '/@/api/sys/user'; import { getPermCode } from '@/api/sys/user';
import { useMessage } from '/@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import { PageEnum } from '/@/enums/pageEnum'; import { PageEnum } from '@/enums/pageEnum';
interface PermissionState { interface PermissionState {
// Permission code list // Permission code list

View File

@@ -1,20 +1,20 @@
import type { UserInfo } from '/#/store'; import type { UserInfo } from '#/store';
import type { ErrorMessageMode } from '/#/axios'; import type { ErrorMessageMode } from '#/axios';
import { defineStore } from 'pinia'; import { defineStore } from 'pinia';
import { store } from '/@/store'; import { store } from '@/store';
import { RoleEnum } from '/@/enums/roleEnum'; import { RoleEnum } from '@/enums/roleEnum';
import { PageEnum } from '/@/enums/pageEnum'; import { PageEnum } from '@/enums/pageEnum';
import { ROLES_KEY, TOKEN_KEY, USER_INFO_KEY } from '/@/enums/cacheEnum'; import { ROLES_KEY, TOKEN_KEY, USER_INFO_KEY } from '@/enums/cacheEnum';
import { getAuthCache, setAuthCache } from '/@/utils/auth'; import { getAuthCache, setAuthCache } from '@/utils/auth';
import { GetUserInfoModel, LoginParams } from '/@/api/sys/model/userModel'; import { GetUserInfoModel, LoginParams } from '@/api/sys/model/userModel';
import { doLogout, getUserInfo, loginApi } from '/@/api/sys/user'; import { doLogout, getUserInfo, loginApi } from '@/api/sys/user';
import { useI18n } from '/@/hooks/web/useI18n'; import { useI18n } from '@/hooks/web/useI18n';
import { useMessage } from '/@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import { router } from '/@/router'; import { router } from '@/router';
import { usePermissionStore } from '/@/store/modules/permission'; import { usePermissionStore } from '@/store/modules/permission';
import { RouteRecordRaw } from 'vue-router'; import { RouteRecordRaw } from 'vue-router';
import { PAGE_NOT_FOUND_ROUTE } from '/@/router/routes/basic'; import { PAGE_NOT_FOUND_ROUTE } from '@/router/routes/basic';
import { isArray } from '/@/utils/is'; import { isArray } from '@/utils/is';
import { h } from 'vue'; import { h } from 'vue';
interface UserState { interface UserState {

View File

@@ -1,6 +1,6 @@
import { Persistent, BasicKeys } from '/@/utils/cache/persistent'; import { Persistent, BasicKeys } from '@/utils/cache/persistent';
import { CacheTypeEnum, TOKEN_KEY } from '/@/enums/cacheEnum'; import { CacheTypeEnum, TOKEN_KEY } from '@/enums/cacheEnum';
import projectSetting from '/@/settings/projectSetting'; import projectSetting from '@/settings/projectSetting';
const { permissionCacheType } = projectSetting; const { permissionCacheType } = projectSetting;
const isLocal = permissionCacheType === CacheTypeEnum.LOCAL; const isLocal = permissionCacheType === CacheTypeEnum.LOCAL;

View File

@@ -1,4 +1,4 @@
import { prefixCls } from '/@/settings/designSetting'; import { prefixCls } from '@/settings/designSetting';
type Mod = string | { [key: string]: any }; type Mod = string | { [key: string]: any };
type Mods = Mod | Mod[]; type Mods = Mod | Mod[];

View File

@@ -1,9 +1,6 @@
import { getStorageShortName } from '/@/utils/env'; import { getStorageShortName } from '@/utils/env';
import { createStorage as create, CreateStorageParams } from './storageCache'; import { createStorage as create, CreateStorageParams } from './storageCache';
import { import { SHOULD_ENABLE_STORAGE_ENCRYPTION, DEFAULT_CACHE_TIME } from '@/settings/encryptionSetting';
SHOULD_ENABLE_STORAGE_ENCRYPTION,
DEFAULT_CACHE_TIME,
} from '/@/settings/encryptionSetting';
export type Options = Partial<CreateStorageParams>; export type Options = Partial<CreateStorageParams>;

View File

@@ -1,8 +1,8 @@
import type { LockInfo, UserInfo } from '/#/store'; import type { LockInfo, UserInfo } from '#/store';
import type { ProjectConfig } from '/#/config'; import type { ProjectConfig } from '#/config';
import type { RouteLocationNormalized } from 'vue-router'; import type { RouteLocationNormalized } from 'vue-router';
import { createLocalStorage, createSessionStorage } from '/@/utils/cache'; import { createLocalStorage, createSessionStorage } from '@/utils/cache';
import { Memory } from './memory'; import { Memory } from './memory';
import { import {
TOKEN_KEY, TOKEN_KEY,
@@ -13,8 +13,8 @@ import {
APP_LOCAL_CACHE_KEY, APP_LOCAL_CACHE_KEY,
APP_SESSION_CACHE_KEY, APP_SESSION_CACHE_KEY,
MULTIPLE_TABS_KEY, MULTIPLE_TABS_KEY,
} from '/@/enums/cacheEnum'; } from '@/enums/cacheEnum';
import { DEFAULT_CACHE_TIME } from '/@/settings/encryptionSetting'; import { DEFAULT_CACHE_TIME } from '@/settings/encryptionSetting';
import { toRaw } from 'vue'; import { toRaw } from 'vue';
import { pick, omit } from 'lodash-es'; import { pick, omit } from 'lodash-es';

View File

@@ -1,5 +1,5 @@
import { cacheCipher } from '/@/settings/encryptionSetting'; import { cacheCipher } from '@/settings/encryptionSetting';
import { isNil } from '/@/utils/is'; import { isNil } from '@/utils/is';
import { Encryption, EncryptionFactory, EncryptionParams } from '@/utils/cipher'; import { Encryption, EncryptionFactory, EncryptionParams } from '@/utils/cipher';
export interface CreateStorageParams extends EncryptionParams { export interface CreateStorageParams extends EncryptionParams {

View File

@@ -1,6 +1,6 @@
import type { GlobEnvConfig } from '/#/config'; import type { GlobEnvConfig } from '#/config';
import pkg from '../../package.json'; import pkg from '../../package.json';
import { API_ADDRESS } from '/@/enums/cacheEnum'; import { API_ADDRESS } from '@/enums/cacheEnum';
export function getCommonStoragePrefix() { export function getCommonStoragePrefix() {
const { VITE_GLOB_APP_TITLE } = getAppEnvConfig(); const { VITE_GLOB_APP_TITLE } = getAppEnvConfig();

View File

@@ -6,7 +6,7 @@ import {
// FunctionalComponent, CSSProperties // FunctionalComponent, CSSProperties
} from 'vue'; } from 'vue';
import { Spin } from 'ant-design-vue'; import { Spin } from 'ant-design-vue';
import { noop } from '/@/utils'; import { noop } from '@/utils';
// const Loading: FunctionalComponent<{ size: 'small' | 'default' | 'large' }> = (props) => { // const Loading: FunctionalComponent<{ size: 'small' | 'default' | 'large' }> = (props) => {
// const style: CSSProperties = { // const style: CSSProperties = {

View File

@@ -1,6 +1,6 @@
import { Slots } from 'vue'; import { Slots } from 'vue';
import { isFunction } from '/@/utils/is'; import { isFunction } from '@/utils/is';
import { RenderOpts } from '/@/components/Form'; import { RenderOpts } from '@/components/Form';
/** /**
* @description: Get slot to prevent empty error * @description: Get slot to prevent empty error

View File

@@ -5,14 +5,14 @@ import type {
AxiosError, AxiosError,
InternalAxiosRequestConfig, InternalAxiosRequestConfig,
} from 'axios'; } from 'axios';
import type { RequestOptions, Result, UploadFileParams } from '/#/axios'; import type { RequestOptions, Result, UploadFileParams } from '#/axios';
import type { CreateAxiosOptions } from './axiosTransform'; import type { CreateAxiosOptions } from './axiosTransform';
import axios from 'axios'; import axios from 'axios';
import qs from 'qs'; import qs from 'qs';
import { AxiosCanceler } from './axiosCancel'; import { AxiosCanceler } from './axiosCancel';
import { isFunction } from '/@/utils/is'; import { isFunction } from '@/utils/is';
import { cloneDeep } from 'lodash-es'; import { cloneDeep } from 'lodash-es';
import { ContentTypeEnum, RequestEnum } from '/@/enums/httpEnum'; import { ContentTypeEnum, RequestEnum } from '@/enums/httpEnum';
export * from './axiosTransform'; export * from './axiosTransform';

View File

@@ -7,7 +7,7 @@ import type {
AxiosResponse, AxiosResponse,
InternalAxiosRequestConfig, InternalAxiosRequestConfig,
} from 'axios'; } from 'axios';
import type { RequestOptions, Result } from '/#/axios'; import type { RequestOptions, Result } from '#/axios';
export interface CreateAxiosOptions extends AxiosRequestConfig { export interface CreateAxiosOptions extends AxiosRequestConfig {
authenticationScheme?: string; authenticationScheme?: string;

View File

@@ -1,11 +1,11 @@
import type { ErrorMessageMode } from '/#/axios'; import type { ErrorMessageMode } from '#/axios';
import { useMessage } from '/@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import { useI18n } from '/@/hooks/web/useI18n'; import { useI18n } from '@/hooks/web/useI18n';
// import router from '/@/router'; // import router from '@/router';
// import { PageEnum } from '/@/enums/pageEnum'; // import { PageEnum } from '@/enums/pageEnum';
import { useUserStoreWithOut } from '/@/store/modules/user'; import { useUserStoreWithOut } from '@/store/modules/user';
import projectSetting from '/@/settings/projectSetting'; import projectSetting from '@/settings/projectSetting';
import { SessionTimeoutProcessingEnum } from '/@/enums/appEnum'; import { SessionTimeoutProcessingEnum } from '@/enums/appEnum';
const { createMessage, createErrorModal } = useMessage(); const { createMessage, createErrorModal } = useMessage();
const error = createMessage.error!; const error = createMessage.error!;

View File

@@ -1,4 +1,4 @@
import { isObject, isString } from '/@/utils/is'; import { isObject, isString } from '@/utils/is';
const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss'; const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss';

View File

@@ -3,21 +3,21 @@
import type { AxiosInstance, AxiosResponse } from 'axios'; import type { AxiosInstance, AxiosResponse } from 'axios';
import { clone } from 'lodash-es'; import { clone } from 'lodash-es';
import type { RequestOptions, Result } from '/#/axios'; import type { RequestOptions, Result } from '#/axios';
import type { AxiosTransform, CreateAxiosOptions } from './axiosTransform'; import type { AxiosTransform, CreateAxiosOptions } from './axiosTransform';
import { VAxios } from './Axios'; import { VAxios } from './Axios';
import { checkStatus } from './checkStatus'; import { checkStatus } from './checkStatus';
import { useGlobSetting } from '/@/hooks/setting'; import { useGlobSetting } from '@/hooks/setting';
import { useMessage } from '/@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import { RequestEnum, ResultEnum, ContentTypeEnum } from '/@/enums/httpEnum'; import { RequestEnum, ResultEnum, ContentTypeEnum } from '@/enums/httpEnum';
import { isString, isUndefined, isNull, isEmpty } from '/@/utils/is'; import { isString, isUndefined, isNull, isEmpty } from '@/utils/is';
import { getToken } from '/@/utils/auth'; import { getToken } from '@/utils/auth';
import { setObjToUrlParams, deepMerge } from '/@/utils'; import { setObjToUrlParams, deepMerge } from '@/utils';
import { useErrorLogStoreWithOut } from '/@/store/modules/errorLog'; import { useErrorLogStoreWithOut } from '@/store/modules/errorLog';
import { useI18n } from '/@/hooks/web/useI18n'; import { useI18n } from '@/hooks/web/useI18n';
import { joinTimestamp, formatRequestDate } from './helper'; import { joinTimestamp, formatRequestDate } from './helper';
import { useUserStoreWithOut } from '/@/store/modules/user'; import { useUserStoreWithOut } from '@/store/modules/user';
import { AxiosRetry } from '/@/utils/http/axios/axiosRetry'; import { AxiosRetry } from '@/utils/http/axios/axiosRetry';
import axios from 'axios'; import axios from 'axios';
const globSetting = useGlobSetting(); const globSetting = useGlobSetting();

View File

@@ -3,7 +3,7 @@ import type { App, Component } from 'vue';
import { intersectionWith, isEqual, mergeWith, unionWith } from 'lodash-es'; import { intersectionWith, isEqual, mergeWith, unionWith } from 'lodash-es';
import { unref } from 'vue'; import { unref } from 'vue';
import { isArray, isObject } from '/@/utils/is'; import { isArray, isObject } from '@/utils/is';
export const noop = () => {}; export const noop = () => {};

View File

@@ -21,7 +21,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from 'vue'; import { ref } from 'vue';
import { Card } from 'ant-design-vue'; import { Card } from 'ant-design-vue';
import { PageWrapper } from '/@/components/Page'; import { PageWrapper } from '@/components/Page';
import WorkbenchHeader from './components/WorkbenchHeader.vue'; import WorkbenchHeader from './components/WorkbenchHeader.vue';
import ProjectCard from './components/ProjectCard.vue'; import ProjectCard from './components/ProjectCard.vue';
import QuickNav from './components/QuickNav.vue'; import QuickNav from './components/QuickNav.vue';

View File

@@ -19,8 +19,8 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, unref } from 'vue'; import { ref, unref } from 'vue';
import { MarkDown, MarkDownActionType, MarkdownViewer } from '/@/components/Markdown'; import { MarkDown, MarkDownActionType, MarkdownViewer } from '@/components/Markdown';
import { PageWrapper } from '/@/components/Page'; import { PageWrapper } from '@/components/Page';
import { Card } from 'ant-design-vue'; import { Card } from 'ant-design-vue';
import { type Nullable } from '@vben/types'; import { type Nullable } from '@vben/types';

View File

@@ -12,7 +12,7 @@
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { Input } from 'ant-design-vue'; import { Input } from 'ant-design-vue';
import { PageWrapper } from '/@/components/Page'; import { PageWrapper } from '@/components/Page';
const { currentRoute } = useRouter(); const { currentRoute } = useRouter();

View File

@@ -59,7 +59,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { BasicTable, useTable, BasicColumn, TableAction } from '@/components/Table'; import { BasicTable, useTable, BasicColumn, TableAction } from '@/components/Table';
import { demoListApi } from '/@/api/demo/table'; import { demoListApi } from '@/api/demo/table';
const columns: BasicColumn[] = [ const columns: BasicColumn[] = [
{ {

View File

@@ -89,7 +89,7 @@
Col, Col,
Row, Row,
} from 'ant-design-vue'; } from 'ant-design-vue';
import RadioButtonGroup from '/@/components/Form/src/components/RadioButtonGroup.vue'; import RadioButtonGroup from '@/components/Form/src/components/RadioButtonGroup.vue';
import { computed, defineComponent, ref, watch } from 'vue'; import { computed, defineComponent, ref, watch } from 'vue';
import { useFormDesignState } from '../../../hooks/useFormDesignState'; import { useFormDesignState } from '../../../hooks/useFormDesignState';
import { import {

View File

@@ -39,8 +39,8 @@
// import { codemirror } from 'vue-codemirror-lite'; // import { codemirror } from 'vue-codemirror-lite';
import { IFormConfig } from '../../../typings/v-form-component'; import { IFormConfig } from '../../../typings/v-form-component';
import { formItemsForEach, generateKey } from '../../../utils'; import { formItemsForEach, generateKey } from '../../../utils';
import { CodeEditor, MODE } from '/@/components/CodeEditor'; import { CodeEditor, MODE } from '@/components/CodeEditor';
import { useMessage } from '/@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
import { Upload, Modal } from 'ant-design-vue'; import { Upload, Modal } from 'ant-design-vue';
export default defineComponent({ export default defineComponent({

View File

@@ -20,10 +20,10 @@
<script lang="ts"> <script lang="ts">
import { defineComponent, reactive, toRefs } from 'vue'; import { defineComponent, reactive, toRefs } from 'vue';
import { CodeEditor, MODE } from '/@/components/CodeEditor'; import { CodeEditor, MODE } from '@/components/CodeEditor';
import { copyText } from '/@/utils/copyTextToClipboard'; import { copyText } from '@/utils/copyTextToClipboard';
import { useMessage } from '/@/hooks/web/useMessage'; import { useMessage } from '@/hooks/web/useMessage';
export default defineComponent({ export default defineComponent({
name: 'PreviewCode', name: 'PreviewCode',

Some files were not shown because too many files have changed in this diff Show More