mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-04 11:26:03 +00:00
refactor: '/@/' ==> '@/' and '/#/ '==> '#/' (#3329)
* refactor: /@/ ==> @/ * chore: '/@/' ==> '@/' and '/#/ '==> '#/' * fix: lint:prettier
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -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"
|
||||||
|
@@ -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: /@\//,
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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',
|
||||||
|
@@ -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
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
@@ -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
|
||||||
*/
|
*/
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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',
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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',
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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();
|
||||||
|
@@ -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',
|
||||||
|
@@ -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';
|
||||||
|
@@ -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;
|
||||||
|
@@ -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';
|
||||||
|
@@ -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';
|
||||||
|
@@ -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' });
|
||||||
|
@@ -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';
|
||||||
|
@@ -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;
|
||||||
|
@@ -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 = {
|
||||||
|
@@ -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();
|
||||||
|
@@ -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 = {
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import type { GlobConfig } from '/#/config';
|
import type { GlobConfig } from '#/config';
|
||||||
|
|
||||||
import { getAppEnvConfig } from '@/utils/env';
|
import { getAppEnvConfig } from '@/utils/env';
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import type { HeaderSetting } from '/#/config';
|
import type { HeaderSetting } from '#/config';
|
||||||
|
|
||||||
import { computed, unref } from 'vue';
|
import { computed, unref } from 'vue';
|
||||||
|
|
||||||
|
@@ -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';
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import type { MultiTabsSetting } from '/#/config';
|
import type { MultiTabsSetting } from '#/config';
|
||||||
|
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import type { ProjectConfig } from '/#/config';
|
import type { ProjectConfig } from '#/config';
|
||||||
|
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import type { TransitionSetting } from '/#/config';
|
import type { TransitionSetting } from '#/config';
|
||||||
|
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
|
|
||||||
|
@@ -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',
|
||||||
|
@@ -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;
|
||||||
|
@@ -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';
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import type { LocaleType } from '/#/config';
|
import type { LocaleType } from '#/config';
|
||||||
|
|
||||||
import { set } from 'lodash-es';
|
import { set } from 'lodash-es';
|
||||||
|
|
||||||
|
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"okText": "OK",
|
"okText": "OK",
|
||||||
"closeText": "Close",
|
"closeText": "Close",
|
||||||
"cancelText": "Cancel",
|
"cancelText": "Cancel",
|
||||||
"loadingText": "Loading...",
|
"loadingText": "Loading...",
|
||||||
"saveText": "Save",
|
"saveText": "Save",
|
||||||
"delText": "Delete",
|
"delText": "Delete",
|
||||||
"resetText": "Reset",
|
"resetText": "Reset",
|
||||||
"searchText": "Search",
|
"searchText": "Search",
|
||||||
"queryText": "Search",
|
"queryText": "Search",
|
||||||
"inputText": "Please enter ",
|
"inputText": "Please enter ",
|
||||||
"chooseText": "Please choose ",
|
"chooseText": "Please choose ",
|
||||||
"redo": "Refresh",
|
"redo": "Refresh",
|
||||||
"back": "Back",
|
"back": "Back",
|
||||||
"light": "Light",
|
"light": "Light",
|
||||||
"dark": "Dark"
|
"dark": "Dark"
|
||||||
}
|
}
|
||||||
|
@@ -1,125 +1,125 @@
|
|||||||
{
|
{
|
||||||
"app": {
|
"app": {
|
||||||
"searchNotData": "No search results yet",
|
"searchNotData": "No search results yet",
|
||||||
"toSearch": "to search",
|
"toSearch": "to search",
|
||||||
"toNavigate": "to navigate"
|
"toNavigate": "to navigate"
|
||||||
},
|
},
|
||||||
"countdown": {
|
"countdown": {
|
||||||
"normalText": "Get SMS code",
|
"normalText": "Get SMS code",
|
||||||
"sendText": "Reacquire in {0}s"
|
"sendText": "Reacquire in {0}s"
|
||||||
},
|
},
|
||||||
"cropper": {
|
"cropper": {
|
||||||
"selectImage": "Select Image",
|
"selectImage": "Select Image",
|
||||||
"uploadSuccess": "Uploaded success!",
|
"uploadSuccess": "Uploaded success!",
|
||||||
"imageTooBig": "Image too big",
|
"imageTooBig": "Image too big",
|
||||||
"modalTitle": "Avatar upload",
|
"modalTitle": "Avatar upload",
|
||||||
"okText": "Confirm and upload",
|
"okText": "Confirm and upload",
|
||||||
"btn_reset": "Reset",
|
"btn_reset": "Reset",
|
||||||
"btn_rotate_left": "Counterclockwise rotation",
|
"btn_rotate_left": "Counterclockwise rotation",
|
||||||
"btn_rotate_right": "Clockwise rotation",
|
"btn_rotate_right": "Clockwise rotation",
|
||||||
"btn_scale_x": "Flip horizontal",
|
"btn_scale_x": "Flip horizontal",
|
||||||
"btn_scale_y": "Flip vertical",
|
"btn_scale_y": "Flip vertical",
|
||||||
"btn_zoom_in": "Zoom in",
|
"btn_zoom_in": "Zoom in",
|
||||||
"btn_zoom_out": "Zoom out",
|
"btn_zoom_out": "Zoom out",
|
||||||
"preview": "Preivew"
|
"preview": "Preivew"
|
||||||
},
|
},
|
||||||
"drawer": {
|
"drawer": {
|
||||||
"loadingText": "Loading...",
|
"loadingText": "Loading...",
|
||||||
"cancelText": "Close",
|
"cancelText": "Close",
|
||||||
"okText": "Confirm"
|
"okText": "Confirm"
|
||||||
},
|
},
|
||||||
"excel": {
|
"excel": {
|
||||||
"exportModalTitle": "Export data",
|
"exportModalTitle": "Export data",
|
||||||
"fileType": "File type",
|
"fileType": "File type",
|
||||||
"fileName": "File name"
|
"fileName": "File name"
|
||||||
},
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"putAway": "Put away",
|
"putAway": "Put away",
|
||||||
"unfold": "Unfold",
|
"unfold": "Unfold",
|
||||||
"maxTip": "The number of characters should be less than {0}",
|
"maxTip": "The number of characters should be less than {0}",
|
||||||
"apiSelectNotFound": "Wait for data loading to complete..."
|
"apiSelectNotFound": "Wait for data loading to complete..."
|
||||||
},
|
},
|
||||||
"icon": {
|
"icon": {
|
||||||
"placeholder": "Click the select icon",
|
"placeholder": "Click the select icon",
|
||||||
"search": "Search icon",
|
"search": "Search icon",
|
||||||
"copy": "Copy icon successfully!"
|
"copy": "Copy icon successfully!"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"search": "Menu search"
|
"search": "Menu search"
|
||||||
},
|
},
|
||||||
"modal": {
|
"modal": {
|
||||||
"cancelText": "Close",
|
"cancelText": "Close",
|
||||||
"okText": "Confirm",
|
"okText": "Confirm",
|
||||||
"close": "Close",
|
"close": "Close",
|
||||||
"maximize": "Maximize",
|
"maximize": "Maximize",
|
||||||
"restore": "Restore"
|
"restore": "Restore"
|
||||||
},
|
},
|
||||||
"table": {
|
"table": {
|
||||||
"settingDens": "Density",
|
"settingDens": "Density",
|
||||||
"settingDensDefault": "Default",
|
"settingDensDefault": "Default",
|
||||||
"settingDensMiddle": "Middle",
|
"settingDensMiddle": "Middle",
|
||||||
"settingDensSmall": "Compact",
|
"settingDensSmall": "Compact",
|
||||||
"settingColumn": "Column settings",
|
"settingColumn": "Column settings",
|
||||||
"settingColumnShow": "Column display",
|
"settingColumnShow": "Column display",
|
||||||
"settingIndexColumnShow": "Index Column",
|
"settingIndexColumnShow": "Index Column",
|
||||||
"settingSelectColumnShow": "Selection Column",
|
"settingSelectColumnShow": "Selection Column",
|
||||||
"settingFixedLeft": "Fixed Left",
|
"settingFixedLeft": "Fixed Left",
|
||||||
"settingFixedRight": "Fixed Right",
|
"settingFixedRight": "Fixed Right",
|
||||||
"settingFullScreen": "Full Screen",
|
"settingFullScreen": "Full Screen",
|
||||||
"index": "Index",
|
"index": "Index",
|
||||||
"total": "total of {total}"
|
"total": "total of {total}"
|
||||||
},
|
},
|
||||||
"time": {
|
"time": {
|
||||||
"before": " ago",
|
"before": " ago",
|
||||||
"after": " after",
|
"after": " after",
|
||||||
"just": "just now",
|
"just": "just now",
|
||||||
"seconds": " seconds",
|
"seconds": " seconds",
|
||||||
"minutes": " minutes",
|
"minutes": " minutes",
|
||||||
"hours": " hours",
|
"hours": " hours",
|
||||||
"days": " days"
|
"days": " days"
|
||||||
},
|
},
|
||||||
"tree": {
|
"tree": {
|
||||||
"selectAll": "Select All",
|
"selectAll": "Select All",
|
||||||
"unSelectAll": "Cancel Select",
|
"unSelectAll": "Cancel Select",
|
||||||
"expandAll": "Expand All",
|
"expandAll": "Expand All",
|
||||||
"unExpandAll": "Collapse all",
|
"unExpandAll": "Collapse all",
|
||||||
"checkStrictly": "Hierarchical association",
|
"checkStrictly": "Hierarchical association",
|
||||||
"checkUnStrictly": "Hierarchical independence"
|
"checkUnStrictly": "Hierarchical independence"
|
||||||
},
|
},
|
||||||
"upload": {
|
"upload": {
|
||||||
"save": "Save",
|
"save": "Save",
|
||||||
"upload": "Upload",
|
"upload": "Upload",
|
||||||
"imgUpload": "ImageUpload",
|
"imgUpload": "ImageUpload",
|
||||||
"uploaded": "Uploaded",
|
"uploaded": "Uploaded",
|
||||||
"operating": "Operating",
|
"operating": "Operating",
|
||||||
"del": "Delete",
|
"del": "Delete",
|
||||||
"download": "download",
|
"download": "download",
|
||||||
"saveWarn": "Please wait for the file to upload and save!",
|
"saveWarn": "Please wait for the file to upload and save!",
|
||||||
"saveError": "There is no file successfully uploaded and cannot be saved!",
|
"saveError": "There is no file successfully uploaded and cannot be saved!",
|
||||||
"preview": "Preview",
|
"preview": "Preview",
|
||||||
"choose": "Select the file",
|
"choose": "Select the file",
|
||||||
"accept": "Support {0} format",
|
"accept": "Support {0} format",
|
||||||
"acceptUpload": "Only upload files in {0} format",
|
"acceptUpload": "Only upload files in {0} format",
|
||||||
"maxSize": "A single file does not exceed {0}MB ",
|
"maxSize": "A single file does not exceed {0}MB ",
|
||||||
"maxSizeMultiple": "Only upload files up to {0}MB!",
|
"maxSizeMultiple": "Only upload files up to {0}MB!",
|
||||||
"maxNumber": "Only upload up to {0} files",
|
"maxNumber": "Only upload up to {0} files",
|
||||||
"legend": "Legend",
|
"legend": "Legend",
|
||||||
"fileName": "File name",
|
"fileName": "File name",
|
||||||
"fileSize": "File size",
|
"fileSize": "File size",
|
||||||
"fileStatue": "File status",
|
"fileStatue": "File status",
|
||||||
"pending": "Pendig",
|
"pending": "Pendig",
|
||||||
"startUpload": "Start upload",
|
"startUpload": "Start upload",
|
||||||
"uploadSuccess": "Upload successfully",
|
"uploadSuccess": "Upload successfully",
|
||||||
"uploadError": "Upload failed",
|
"uploadError": "Upload failed",
|
||||||
"uploading": "Uploading",
|
"uploading": "Uploading",
|
||||||
"uploadWait": "Please wait for the file upload to finish",
|
"uploadWait": "Please wait for the file upload to finish",
|
||||||
"reUploadFailed": "Re-upload failed files"
|
"reUploadFailed": "Re-upload failed files"
|
||||||
},
|
},
|
||||||
"verify": {
|
"verify": {
|
||||||
"error": "verification failed!",
|
"error": "verification failed!",
|
||||||
"time": "The verification is successful and it takes {time} seconds!",
|
"time": "The verification is successful and it takes {time} seconds!",
|
||||||
"redoTip": "Click the picture to refresh",
|
"redoTip": "Click the picture to refresh",
|
||||||
"dragText": "Hold down the slider and drag",
|
"dragText": "Hold down the slider and drag",
|
||||||
"successText": "Verified"
|
"successText": "Verified"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,4 +93,4 @@
|
|||||||
"mixSidebarFixed": "Fixed expanded menu",
|
"mixSidebarFixed": "Fixed expanded menu",
|
||||||
"autoCollapseTabsInFold": "Auto collapse tabs in fold"
|
"autoCollapseTabsInFold": "Auto collapse tabs in fold"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"errorLogList": "Error Log"
|
"errorLogList": "Error Log"
|
||||||
}
|
}
|
||||||
|
@@ -1,92 +1,92 @@
|
|||||||
{
|
{
|
||||||
"api": {
|
"api": {
|
||||||
"operationSuccess": "Operation Success",
|
"operationSuccess": "Operation Success",
|
||||||
"operationFailed": "Operation failed",
|
"operationFailed": "Operation failed",
|
||||||
"errorTip": "Error Tip",
|
"errorTip": "Error Tip",
|
||||||
"successTip": "Success Tip",
|
"successTip": "Success Tip",
|
||||||
"errorMessage": "The operation failed, the system is abnormal!",
|
"errorMessage": "The operation failed, the system is abnormal!",
|
||||||
"timeoutMessage": "Login timed out, please log in again!",
|
"timeoutMessage": "Login timed out, please log in again!",
|
||||||
"apiTimeoutMessage": "The interface request timed out, please refresh the page and try again!",
|
"apiTimeoutMessage": "The interface request timed out, please refresh the page and try again!",
|
||||||
"apiRequestFailed": "The interface request failed, please try again later!",
|
"apiRequestFailed": "The interface request failed, please try again later!",
|
||||||
"networkException": "network anomaly",
|
"networkException": "network anomaly",
|
||||||
"networkExceptionMsg": "Please check if your network connection is normal! The network is abnormal",
|
"networkExceptionMsg": "Please check if your network connection is normal! The network is abnormal",
|
||||||
"errMsg401": "The user does not have permission (token, user name, password error)!",
|
"errMsg401": "The user does not have permission (token, user name, password error)!",
|
||||||
"errMsg403": "The user is authorized, but access is forbidden!",
|
"errMsg403": "The user is authorized, but access is forbidden!",
|
||||||
"errMsg404": "Network request error, the resource was not found!",
|
"errMsg404": "Network request error, the resource was not found!",
|
||||||
"errMsg405": "Network request error, request method not allowed!",
|
"errMsg405": "Network request error, request method not allowed!",
|
||||||
"errMsg408": "Network request timed out!",
|
"errMsg408": "Network request timed out!",
|
||||||
"errMsg500": "Server error, please contact the administrator!",
|
"errMsg500": "Server error, please contact the administrator!",
|
||||||
"errMsg501": "The network is not implemented!",
|
"errMsg501": "The network is not implemented!",
|
||||||
"errMsg502": "Network Error!",
|
"errMsg502": "Network Error!",
|
||||||
"errMsg503": "The service is unavailable, the server is temporarily overloaded or maintained!",
|
"errMsg503": "The service is unavailable, the server is temporarily overloaded or maintained!",
|
||||||
"errMsg504": "Network timeout!",
|
"errMsg504": "Network timeout!",
|
||||||
"errMsg505": "The http version does not support the request!"
|
"errMsg505": "The http version does not support the request!"
|
||||||
},
|
},
|
||||||
"app": {
|
"app": {
|
||||||
"logoutTip": "Reminder",
|
"logoutTip": "Reminder",
|
||||||
"logoutMessage": "Confirm to exit the system?",
|
"logoutMessage": "Confirm to exit the system?",
|
||||||
"menuLoading": "Menu loading..."
|
"menuLoading": "Menu loading..."
|
||||||
},
|
},
|
||||||
"errorLog": {
|
"errorLog": {
|
||||||
"tableTitle": "Error log list",
|
"tableTitle": "Error log list",
|
||||||
"tableColumnType": "Type",
|
"tableColumnType": "Type",
|
||||||
"tableColumnDate": "Time",
|
"tableColumnDate": "Time",
|
||||||
"tableColumnFile": "File",
|
"tableColumnFile": "File",
|
||||||
"tableColumnMsg": "Error message",
|
"tableColumnMsg": "Error message",
|
||||||
"tableColumnStackMsg": "Stack info",
|
"tableColumnStackMsg": "Stack info",
|
||||||
"tableActionDesc": "Details",
|
"tableActionDesc": "Details",
|
||||||
"modalTitle": "Error details",
|
"modalTitle": "Error details",
|
||||||
"fireVueError": "Fire vue error",
|
"fireVueError": "Fire vue error",
|
||||||
"fireResourceError": "Fire resource error",
|
"fireResourceError": "Fire resource error",
|
||||||
"fireAjaxError": "Fire ajax error",
|
"fireAjaxError": "Fire ajax error",
|
||||||
"enableMessage": "Only effective when useErrorHandle=true in `/src/settings/projectSetting.ts`."
|
"enableMessage": "Only effective when useErrorHandle=true in `/src/settings/projectSetting.ts`."
|
||||||
},
|
},
|
||||||
"exception": {
|
"exception": {
|
||||||
"backLogin": "Back Login",
|
"backLogin": "Back Login",
|
||||||
"backHome": "Back Home",
|
"backHome": "Back Home",
|
||||||
"subTitle403": "Sorry, you don't have access to this page.",
|
"subTitle403": "Sorry, you don't have access to this page.",
|
||||||
"subTitle404": "Sorry, the page you visited does not exist.",
|
"subTitle404": "Sorry, the page you visited does not exist.",
|
||||||
"subTitle500": "Sorry, the server is reporting an error.",
|
"subTitle500": "Sorry, the server is reporting an error.",
|
||||||
"noDataTitle": "No data on the current page.",
|
"noDataTitle": "No data on the current page.",
|
||||||
"networkErrorTitle": "Network Error",
|
"networkErrorTitle": "Network Error",
|
||||||
"networkErrorSubTitle": "Sorry,Your network connection has been disconnected, please check your network!"
|
"networkErrorSubTitle": "Sorry,Your network connection has been disconnected, please check your network!"
|
||||||
},
|
},
|
||||||
"lock": {
|
"lock": {
|
||||||
"unlock": "Click to unlock",
|
"unlock": "Click to unlock",
|
||||||
"alert": "Lock screen password error",
|
"alert": "Lock screen password error",
|
||||||
"backToLogin": "Back to login",
|
"backToLogin": "Back to login",
|
||||||
"entry": "Enter the system",
|
"entry": "Enter the system",
|
||||||
"placeholder": "Please enter the lock screen password or user password"
|
"placeholder": "Please enter the lock screen password or user password"
|
||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
"backSignIn": "Back sign in",
|
"backSignIn": "Back sign in",
|
||||||
"mobileSignInFormTitle": "Mobile sign in",
|
"mobileSignInFormTitle": "Mobile sign in",
|
||||||
"qrSignInFormTitle": "Qr code sign in",
|
"qrSignInFormTitle": "Qr code sign in",
|
||||||
"signInFormTitle": "Sign in",
|
"signInFormTitle": "Sign in",
|
||||||
"signUpFormTitle": "Sign up",
|
"signUpFormTitle": "Sign up",
|
||||||
"forgetFormTitle": "Reset password",
|
"forgetFormTitle": "Reset password",
|
||||||
"signInTitle": "Backstage management system",
|
"signInTitle": "Backstage management system",
|
||||||
"signInDesc": "Enter your personal details and get started!",
|
"signInDesc": "Enter your personal details and get started!",
|
||||||
"policy": "I agree to the xxx Privacy Policy",
|
"policy": "I agree to the xxx Privacy Policy",
|
||||||
"scanSign": "scanning the code to complete the login",
|
"scanSign": "scanning the code to complete the login",
|
||||||
"loginButton": "Sign in",
|
"loginButton": "Sign in",
|
||||||
"registerButton": "Sign up",
|
"registerButton": "Sign up",
|
||||||
"rememberMe": "Remember me",
|
"rememberMe": "Remember me",
|
||||||
"forgetPassword": "Forget Password?",
|
"forgetPassword": "Forget Password?",
|
||||||
"otherSignIn": "Sign in with",
|
"otherSignIn": "Sign in with",
|
||||||
"loginSuccessTitle": "Login successful",
|
"loginSuccessTitle": "Login successful",
|
||||||
"loginSuccessDesc": "Welcome back",
|
"loginSuccessDesc": "Welcome back",
|
||||||
"accountPlaceholder": "Please input username",
|
"accountPlaceholder": "Please input username",
|
||||||
"passwordPlaceholder": "Please input password",
|
"passwordPlaceholder": "Please input password",
|
||||||
"smsPlaceholder": "Please input sms code",
|
"smsPlaceholder": "Please input sms code",
|
||||||
"mobilePlaceholder": "Please input mobile",
|
"mobilePlaceholder": "Please input mobile",
|
||||||
"policyPlaceholder": "Register after checking",
|
"policyPlaceholder": "Register after checking",
|
||||||
"diffPwd": "The two passwords are inconsistent",
|
"diffPwd": "The two passwords are inconsistent",
|
||||||
"userName": "Username",
|
"userName": "Username",
|
||||||
"password": "Password",
|
"password": "Password",
|
||||||
"confirmPassword": "Confirm Password",
|
"confirmPassword": "Confirm Password",
|
||||||
"email": "Email",
|
"email": "Email",
|
||||||
"smsCode": "SMS code",
|
"smsCode": "SMS code",
|
||||||
"mobile": "Mobile"
|
"mobile": "Mobile"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"lang": {
|
"lang": {
|
||||||
"shortWeekDays": ["日","一", "二", "三", "四", "五", "六"],
|
"shortWeekDays": ["日", "一", "二", "三", "四", "五", "六"],
|
||||||
"shortMonths": [
|
"shortMonths": [
|
||||||
"1月",
|
"1月",
|
||||||
"2月",
|
"2月",
|
||||||
|
@@ -1,125 +1,125 @@
|
|||||||
{
|
{
|
||||||
"app": {
|
"app": {
|
||||||
"searchNotData": "暂无搜索结果",
|
"searchNotData": "暂无搜索结果",
|
||||||
"toSearch": "确认",
|
"toSearch": "确认",
|
||||||
"toNavigate": "切换"
|
"toNavigate": "切换"
|
||||||
},
|
},
|
||||||
"countdown": {
|
"countdown": {
|
||||||
"normalText": "获取验证码",
|
"normalText": "获取验证码",
|
||||||
"sendText": "{0}秒后重新获取"
|
"sendText": "{0}秒后重新获取"
|
||||||
},
|
},
|
||||||
"cropper": {
|
"cropper": {
|
||||||
"selectImage": "选择图片",
|
"selectImage": "选择图片",
|
||||||
"uploadSuccess": "上传成功",
|
"uploadSuccess": "上传成功",
|
||||||
"imageTooBig": "图片超限",
|
"imageTooBig": "图片超限",
|
||||||
"modalTitle": "头像上传",
|
"modalTitle": "头像上传",
|
||||||
"okText": "确认并上传",
|
"okText": "确认并上传",
|
||||||
"btn_reset": "重置",
|
"btn_reset": "重置",
|
||||||
"btn_rotate_left": "逆时针旋转",
|
"btn_rotate_left": "逆时针旋转",
|
||||||
"btn_rotate_right": "顺时针旋转",
|
"btn_rotate_right": "顺时针旋转",
|
||||||
"btn_scale_x": "水平翻转",
|
"btn_scale_x": "水平翻转",
|
||||||
"btn_scale_y": "垂直翻转",
|
"btn_scale_y": "垂直翻转",
|
||||||
"btn_zoom_in": "放大",
|
"btn_zoom_in": "放大",
|
||||||
"btn_zoom_out": "缩小",
|
"btn_zoom_out": "缩小",
|
||||||
"preview": "预览"
|
"preview": "预览"
|
||||||
},
|
},
|
||||||
"drawer": {
|
"drawer": {
|
||||||
"loadingText": "加载中...",
|
"loadingText": "加载中...",
|
||||||
"cancelText": "关闭",
|
"cancelText": "关闭",
|
||||||
"okText": "确认"
|
"okText": "确认"
|
||||||
},
|
},
|
||||||
"excel": {
|
"excel": {
|
||||||
"exportModalTitle": "导出数据",
|
"exportModalTitle": "导出数据",
|
||||||
"fileType": "文件类型",
|
"fileType": "文件类型",
|
||||||
"fileName": "文件名"
|
"fileName": "文件名"
|
||||||
},
|
},
|
||||||
"form": {
|
"form": {
|
||||||
"putAway": "收起",
|
"putAway": "收起",
|
||||||
"unfold": "展开",
|
"unfold": "展开",
|
||||||
"maxTip": "字符数应小于{0}位",
|
"maxTip": "字符数应小于{0}位",
|
||||||
"apiSelectNotFound": "请等待数据加载完成..."
|
"apiSelectNotFound": "请等待数据加载完成..."
|
||||||
},
|
},
|
||||||
"icon": {
|
"icon": {
|
||||||
"placeholder": "点击选择图标",
|
"placeholder": "点击选择图标",
|
||||||
"search": "搜索图标",
|
"search": "搜索图标",
|
||||||
"copy": "复制图标成功!"
|
"copy": "复制图标成功!"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"search": "菜单搜索"
|
"search": "菜单搜索"
|
||||||
},
|
},
|
||||||
"modal": {
|
"modal": {
|
||||||
"cancelText": "关闭",
|
"cancelText": "关闭",
|
||||||
"okText": "确认",
|
"okText": "确认",
|
||||||
"close": "关闭",
|
"close": "关闭",
|
||||||
"maximize": "最大化",
|
"maximize": "最大化",
|
||||||
"restore": "还原"
|
"restore": "还原"
|
||||||
},
|
},
|
||||||
"table": {
|
"table": {
|
||||||
"settingDens": "密度",
|
"settingDens": "密度",
|
||||||
"settingDensDefault": "默认",
|
"settingDensDefault": "默认",
|
||||||
"settingDensMiddle": "中等",
|
"settingDensMiddle": "中等",
|
||||||
"settingDensSmall": "紧凑",
|
"settingDensSmall": "紧凑",
|
||||||
"settingColumn": "列设置",
|
"settingColumn": "列设置",
|
||||||
"settingColumnShow": "列展示",
|
"settingColumnShow": "列展示",
|
||||||
"settingIndexColumnShow": "序号列",
|
"settingIndexColumnShow": "序号列",
|
||||||
"settingSelectColumnShow": "勾选列",
|
"settingSelectColumnShow": "勾选列",
|
||||||
"settingFixedLeft": "固定到左侧",
|
"settingFixedLeft": "固定到左侧",
|
||||||
"settingFixedRight": "固定到右侧",
|
"settingFixedRight": "固定到右侧",
|
||||||
"settingFullScreen": "全屏",
|
"settingFullScreen": "全屏",
|
||||||
"index": "序号",
|
"index": "序号",
|
||||||
"total": "共 {total} 条数据"
|
"total": "共 {total} 条数据"
|
||||||
},
|
},
|
||||||
"time": {
|
"time": {
|
||||||
"before": "前",
|
"before": "前",
|
||||||
"after": "后",
|
"after": "后",
|
||||||
"just": "刚刚",
|
"just": "刚刚",
|
||||||
"seconds": "秒",
|
"seconds": "秒",
|
||||||
"minutes": "分钟",
|
"minutes": "分钟",
|
||||||
"hours": "小时",
|
"hours": "小时",
|
||||||
"days": "天"
|
"days": "天"
|
||||||
},
|
},
|
||||||
"tree": {
|
"tree": {
|
||||||
"selectAll": "选择全部",
|
"selectAll": "选择全部",
|
||||||
"unSelectAll": "取消选择",
|
"unSelectAll": "取消选择",
|
||||||
"expandAll": "展开全部",
|
"expandAll": "展开全部",
|
||||||
"unExpandAll": "折叠全部",
|
"unExpandAll": "折叠全部",
|
||||||
"checkStrictly": "层级关联",
|
"checkStrictly": "层级关联",
|
||||||
"checkUnStrictly": "层级独立"
|
"checkUnStrictly": "层级独立"
|
||||||
},
|
},
|
||||||
"upload": {
|
"upload": {
|
||||||
"save": "保存",
|
"save": "保存",
|
||||||
"upload": "上传",
|
"upload": "上传",
|
||||||
"imgUpload": "图片上传",
|
"imgUpload": "图片上传",
|
||||||
"uploaded": "已上传",
|
"uploaded": "已上传",
|
||||||
"operating": "操作",
|
"operating": "操作",
|
||||||
"del": "删除",
|
"del": "删除",
|
||||||
"download": "下载",
|
"download": "下载",
|
||||||
"saveWarn": "请等待文件上传后,保存!",
|
"saveWarn": "请等待文件上传后,保存!",
|
||||||
"saveError": "没有上传成功的文件,无法保存!",
|
"saveError": "没有上传成功的文件,无法保存!",
|
||||||
"preview": "预览",
|
"preview": "预览",
|
||||||
"choose": "选择文件",
|
"choose": "选择文件",
|
||||||
"accept": "支持{0}格式",
|
"accept": "支持{0}格式",
|
||||||
"acceptUpload": "只能上传{0}格式文件",
|
"acceptUpload": "只能上传{0}格式文件",
|
||||||
"maxSize": "单个文件不超过{0}MB",
|
"maxSize": "单个文件不超过{0}MB",
|
||||||
"maxSizeMultiple": "只能上传不超过{0}MB的文件!",
|
"maxSizeMultiple": "只能上传不超过{0}MB的文件!",
|
||||||
"maxNumber": "最多只能上传{0}个文件",
|
"maxNumber": "最多只能上传{0}个文件",
|
||||||
"legend": "略缩图",
|
"legend": "略缩图",
|
||||||
"fileName": "文件名",
|
"fileName": "文件名",
|
||||||
"fileSize": "文件大小",
|
"fileSize": "文件大小",
|
||||||
"fileStatue": "状态",
|
"fileStatue": "状态",
|
||||||
"pending": "待上传",
|
"pending": "待上传",
|
||||||
"startUpload": "开始上传",
|
"startUpload": "开始上传",
|
||||||
"uploadSuccess": "上传成功",
|
"uploadSuccess": "上传成功",
|
||||||
"uploadError": "上传失败",
|
"uploadError": "上传失败",
|
||||||
"uploading": "上传中",
|
"uploading": "上传中",
|
||||||
"uploadWait": "请等待文件上传结束后操作",
|
"uploadWait": "请等待文件上传结束后操作",
|
||||||
"reUploadFailed": "重新上传失败文件"
|
"reUploadFailed": "重新上传失败文件"
|
||||||
},
|
},
|
||||||
"verify": {
|
"verify": {
|
||||||
"error": "验证失败!",
|
"error": "验证失败!",
|
||||||
"time": "验证校验成功,耗时{time}秒!",
|
"time": "验证校验成功,耗时{time}秒!",
|
||||||
"redoTip": "点击图片可刷新",
|
"redoTip": "点击图片可刷新",
|
||||||
"dragText": "请按住滑块拖动",
|
"dragText": "请按住滑块拖动",
|
||||||
"successText": "验证通过"
|
"successText": "验证通过"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -93,4 +93,4 @@
|
|||||||
"mixSidebarFixed": "固定展开菜单",
|
"mixSidebarFixed": "固定展开菜单",
|
||||||
"autoCollapseTabsInFold": "fold模式下自动收起标签页"
|
"autoCollapseTabsInFold": "fold模式下自动收起标签页"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,92 +1,92 @@
|
|||||||
{
|
{
|
||||||
"api": {
|
"api": {
|
||||||
"operationSuccess": "操作成功",
|
"operationSuccess": "操作成功",
|
||||||
"operationFailed": "操作失败",
|
"operationFailed": "操作失败",
|
||||||
"errorTip": "错误提示",
|
"errorTip": "错误提示",
|
||||||
"successTip": "成功提示",
|
"successTip": "成功提示",
|
||||||
"errorMessage": "操作失败,系统异常!",
|
"errorMessage": "操作失败,系统异常!",
|
||||||
"timeoutMessage": "登录超时,请重新登录!",
|
"timeoutMessage": "登录超时,请重新登录!",
|
||||||
"apiTimeoutMessage": "接口请求超时,请刷新页面重试!",
|
"apiTimeoutMessage": "接口请求超时,请刷新页面重试!",
|
||||||
"apiRequestFailed": "请求出错,请稍候重试",
|
"apiRequestFailed": "请求出错,请稍候重试",
|
||||||
"networkException": "网络异常",
|
"networkException": "网络异常",
|
||||||
"networkExceptionMsg": "网络异常,请检查您的网络连接是否正常!",
|
"networkExceptionMsg": "网络异常,请检查您的网络连接是否正常!",
|
||||||
"errMsg401": "用户没有权限(令牌、用户名、密码错误)!",
|
"errMsg401": "用户没有权限(令牌、用户名、密码错误)!",
|
||||||
"errMsg403": "用户得到授权,但是访问是被禁止的。!",
|
"errMsg403": "用户得到授权,但是访问是被禁止的。!",
|
||||||
"errMsg404": "网络请求错误,未找到该资源!",
|
"errMsg404": "网络请求错误,未找到该资源!",
|
||||||
"errMsg405": "网络请求错误,请求方法未允许!",
|
"errMsg405": "网络请求错误,请求方法未允许!",
|
||||||
"errMsg408": "网络请求超时!",
|
"errMsg408": "网络请求超时!",
|
||||||
"errMsg500": "服务器错误,请联系管理员!",
|
"errMsg500": "服务器错误,请联系管理员!",
|
||||||
"errMsg501": "网络未实现!",
|
"errMsg501": "网络未实现!",
|
||||||
"errMsg502": "网络错误!",
|
"errMsg502": "网络错误!",
|
||||||
"errMsg503": "服务不可用,服务器暂时过载或维护!",
|
"errMsg503": "服务不可用,服务器暂时过载或维护!",
|
||||||
"errMsg504": "网络超时!",
|
"errMsg504": "网络超时!",
|
||||||
"errMsg505": "http版本不支持该请求!"
|
"errMsg505": "http版本不支持该请求!"
|
||||||
},
|
},
|
||||||
"app": {
|
"app": {
|
||||||
"logoutTip": "温馨提醒",
|
"logoutTip": "温馨提醒",
|
||||||
"logoutMessage": "是否确认退出系统?",
|
"logoutMessage": "是否确认退出系统?",
|
||||||
"menuLoading": "菜单加载中..."
|
"menuLoading": "菜单加载中..."
|
||||||
},
|
},
|
||||||
"errorLog": {
|
"errorLog": {
|
||||||
"tableTitle": "错误日志列表",
|
"tableTitle": "错误日志列表",
|
||||||
"tableColumnType": "类型",
|
"tableColumnType": "类型",
|
||||||
"tableColumnDate": "时间",
|
"tableColumnDate": "时间",
|
||||||
"tableColumnFile": "文件",
|
"tableColumnFile": "文件",
|
||||||
"tableColumnMsg": "错误信息",
|
"tableColumnMsg": "错误信息",
|
||||||
"tableColumnStackMsg": "stack信息",
|
"tableColumnStackMsg": "stack信息",
|
||||||
"tableActionDesc": "详情",
|
"tableActionDesc": "详情",
|
||||||
"modalTitle": "错误详情",
|
"modalTitle": "错误详情",
|
||||||
"fireVueError": "点击触发vue错误",
|
"fireVueError": "点击触发vue错误",
|
||||||
"fireResourceError": "点击触发资源加载错误",
|
"fireResourceError": "点击触发资源加载错误",
|
||||||
"fireAjaxError": "点击触发ajax错误",
|
"fireAjaxError": "点击触发ajax错误",
|
||||||
"enableMessage": "只在`/src/settings/projectSetting.ts` 内的useErrorHandle=true时生效."
|
"enableMessage": "只在`/src/settings/projectSetting.ts` 内的useErrorHandle=true时生效."
|
||||||
},
|
},
|
||||||
"exception": {
|
"exception": {
|
||||||
"backLogin": "返回登录",
|
"backLogin": "返回登录",
|
||||||
"backHome": "返回首页",
|
"backHome": "返回首页",
|
||||||
"subTitle403": "抱歉,您无权访问此页面。",
|
"subTitle403": "抱歉,您无权访问此页面。",
|
||||||
"subTitle404": "抱歉,您访问的页面不存在。",
|
"subTitle404": "抱歉,您访问的页面不存在。",
|
||||||
"subTitle500": "抱歉,服务器报告错误。",
|
"subTitle500": "抱歉,服务器报告错误。",
|
||||||
"noDataTitle": "当前页无数据",
|
"noDataTitle": "当前页无数据",
|
||||||
"networkErrorTitle": "网络错误",
|
"networkErrorTitle": "网络错误",
|
||||||
"networkErrorSubTitle": "抱歉,您的网络连接已断开,请检查您的网络!"
|
"networkErrorSubTitle": "抱歉,您的网络连接已断开,请检查您的网络!"
|
||||||
},
|
},
|
||||||
"lock": {
|
"lock": {
|
||||||
"unlock": "点击解锁",
|
"unlock": "点击解锁",
|
||||||
"alert": "锁屏密码错误",
|
"alert": "锁屏密码错误",
|
||||||
"backToLogin": "返回登录",
|
"backToLogin": "返回登录",
|
||||||
"entry": "进入系统",
|
"entry": "进入系统",
|
||||||
"placeholder": "请输入锁屏密码或者用户密码"
|
"placeholder": "请输入锁屏密码或者用户密码"
|
||||||
},
|
},
|
||||||
"login": {
|
"login": {
|
||||||
"backSignIn": "返回",
|
"backSignIn": "返回",
|
||||||
"signInFormTitle": "登录",
|
"signInFormTitle": "登录",
|
||||||
"mobileSignInFormTitle": "手机登录",
|
"mobileSignInFormTitle": "手机登录",
|
||||||
"qrSignInFormTitle": "二维码登录",
|
"qrSignInFormTitle": "二维码登录",
|
||||||
"signUpFormTitle": "注册",
|
"signUpFormTitle": "注册",
|
||||||
"forgetFormTitle": "重置密码",
|
"forgetFormTitle": "重置密码",
|
||||||
"signInTitle": "开箱即用的中后台管理系统",
|
"signInTitle": "开箱即用的中后台管理系统",
|
||||||
"signInDesc": "输入您的个人详细信息开始使用!",
|
"signInDesc": "输入您的个人详细信息开始使用!",
|
||||||
"policy": "我同意xxx隐私政策",
|
"policy": "我同意xxx隐私政策",
|
||||||
"scanSign": "扫码后点击\"确认\",即可完成登录",
|
"scanSign": "扫码后点击\"确认\",即可完成登录",
|
||||||
"loginButton": "登录",
|
"loginButton": "登录",
|
||||||
"registerButton": "注册",
|
"registerButton": "注册",
|
||||||
"rememberMe": "记住我",
|
"rememberMe": "记住我",
|
||||||
"forgetPassword": "忘记密码?",
|
"forgetPassword": "忘记密码?",
|
||||||
"otherSignIn": "其他登录方式",
|
"otherSignIn": "其他登录方式",
|
||||||
"loginSuccessTitle": "登录成功",
|
"loginSuccessTitle": "登录成功",
|
||||||
"loginSuccessDesc": "欢迎回来",
|
"loginSuccessDesc": "欢迎回来",
|
||||||
"accountPlaceholder": "请输入账号",
|
"accountPlaceholder": "请输入账号",
|
||||||
"passwordPlaceholder": "请输入密码",
|
"passwordPlaceholder": "请输入密码",
|
||||||
"smsPlaceholder": "请输入验证码",
|
"smsPlaceholder": "请输入验证码",
|
||||||
"mobilePlaceholder": "请输入手机号码",
|
"mobilePlaceholder": "请输入手机号码",
|
||||||
"policyPlaceholder": "勾选后才能注册",
|
"policyPlaceholder": "勾选后才能注册",
|
||||||
"diffPwd": "两次输入密码不一致",
|
"diffPwd": "两次输入密码不一致",
|
||||||
"userName": "账号",
|
"userName": "账号",
|
||||||
"password": "密码",
|
"password": "密码",
|
||||||
"confirmPassword": "确认密码",
|
"confirmPassword": "确认密码",
|
||||||
"email": "邮箱",
|
"email": "邮箱",
|
||||||
"smsCode": "短信验证码",
|
"smsCode": "短信验证码",
|
||||||
"mobile": "手机号码"
|
"mobile": "手机号码"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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 });
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
|
||||||
|
@@ -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';
|
||||||
|
@@ -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
|
||||||
|
@@ -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() {
|
||||||
|
@@ -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();
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
@@ -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';
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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();
|
||||||
|
@@ -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;
|
||||||
|
|
||||||
|
@@ -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) => {
|
||||||
|
@@ -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';
|
||||||
|
|
||||||
|
@@ -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')>>();
|
||||||
|
|
||||||
|
@@ -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 });
|
||||||
|
@@ -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,
|
||||||
|
@@ -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'),
|
||||||
},
|
},
|
||||||
|
@@ -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,
|
||||||
|
@@ -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',
|
||||||
|
@@ -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'),
|
||||||
},
|
},
|
||||||
|
@@ -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'),
|
||||||
},
|
},
|
||||||
|
@@ -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'),
|
||||||
},
|
},
|
||||||
|
@@ -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,
|
||||||
|
@@ -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'),
|
||||||
},
|
},
|
||||||
|
@@ -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',
|
||||||
|
@@ -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,
|
||||||
|
@@ -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'),
|
||||||
},
|
},
|
||||||
|
@@ -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'),
|
||||||
},
|
},
|
||||||
|
@@ -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',
|
||||||
|
@@ -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'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@@ -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'),
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@@ -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> =
|
||||||
|
@@ -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;
|
||||||
|
@@ -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',
|
||||||
|
@@ -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,
|
||||||
|
@@ -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;
|
||||||
|
@@ -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[]>;
|
||||||
|
@@ -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();
|
||||||
|
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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>;
|
||||||
|
@@ -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
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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;
|
||||||
|
@@ -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[];
|
||||||
|
7
src/utils/cache/index.ts
vendored
7
src/utils/cache/index.ts
vendored
@@ -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>;
|
||||||
|
|
||||||
|
10
src/utils/cache/persistent.ts
vendored
10
src/utils/cache/persistent.ts
vendored
@@ -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';
|
||||||
|
|
||||||
|
4
src/utils/cache/storageCache.ts
vendored
4
src/utils/cache/storageCache.ts
vendored
@@ -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 {
|
||||||
|
@@ -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();
|
||||||
|
@@ -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 = {
|
||||||
|
@@ -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
|
||||||
|
@@ -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';
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
@@ -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!;
|
||||||
|
@@ -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';
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user