2
0

feat: 修改生产API标识,修改默认布局

This commit is contained in:
TsMask
2024-11-28 10:36:01 +08:00
parent 1240d9aedf
commit 19d48eac0e
15 changed files with 27 additions and 91 deletions

View File

@@ -1,6 +1,6 @@
const local: any = {
system: {
title: 'Vue-AntD-Web'
title: 'WANFi Platform'
},
common: {
action: 'Action',

View File

@@ -1,6 +1,6 @@
const local:any = {
system: {
title: 'Vue-AntD-Web'
title: 'WANFi 平台',
},
common: {
action: '操作',

View File

@@ -1,11 +1,11 @@
import type { CustomRoute } from '@elegant-router/types';
import { layouts, views } from '../elegant/imports';
import { getRoutePath, transformElegantRoutesToVueRoutes } from '../elegant/transform';
import { transformElegantRoutesToVueRoutes } from '../elegant/transform';
export const ROOT_ROUTE: CustomRoute = {
name: 'root',
path: '/',
redirect: getRoutePath(import.meta.env.VITE_ROUTE_HOME) || 'manage_user',
redirect: '/home',
meta: {
title: 'root',
constant: true

View File

@@ -40,7 +40,7 @@ export const useRouteStore = defineStore(SetupStoreId.Route, () => {
const authRouteMode = ref(import.meta.env.VITE_AUTH_ROUTE_MODE);
/** Home route key */
const routeHome = ref(import.meta.env.VITE_ROUTE_HOME);
const routeHome = ref('home');
/**
* Set route home

View File

@@ -2,34 +2,12 @@
export const themeSettings: App.Theme.ThemeSetting = {
themeScheme: 'light',
themeColor: '#646cff',
otherColor: {
info: '#2080f0',
success: '#52c41a',
warning: '#faad14',
error: '#f5222d'
},
otherColor: { info: '#2080f0', success: '#52c41a', warning: '#faad14', error: '#f5222d' },
isInfoFollowPrimary: true,
layout: {
mode: 'vertical',
scrollMode: 'content'
},
page: {
animate: true,
animateMode: 'fade-slide'
},
header: {
height: 56,
breadcrumb: {
visible: true,
showIcon: true
}
},
tab: {
visible: true,
cache: true,
height: 44,
mode: 'chrome'
},
layout: { mode: 'horizontal-mix', scrollMode: 'content' },
page: { animate: true, animateMode: 'fade-slide' },
header: { height: 56, breadcrumb: { visible: true, showIcon: true } },
tab: { visible: false, cache: true, height: 44, mode: 'chrome' },
fixedHeaderAndTab: true,
sider: {
inverted: false,
@@ -39,12 +17,7 @@ export const themeSettings: App.Theme.ThemeSetting = {
mixCollapsedWidth: 64,
mixChildMenuWidth: 200
},
footer: {
visible: false,
fixed: false,
height: 48,
right: true
}
footer: { visible: true, fixed: false, height: 36, right: true }
};
/**

View File

@@ -32,7 +32,6 @@ declare module 'vue' {
AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider']
AMenuItem: typeof import('ant-design-vue/es')['MenuItem']
AModal: typeof import('ant-design-vue/es')['Modal']
AntTree: typeof import('./../components/custom/ant-tree.vue')['default']
APopconfirm: typeof import('ant-design-vue/es')['Popconfirm']
APopover: typeof import('ant-design-vue/es')['Popover']
AppLoading: typeof import('./../components/common/app-loading.vue')['default']
@@ -66,7 +65,6 @@ declare module 'vue' {
IconGridiconsFullscreen: typeof import('~icons/gridicons/fullscreen')['default']
IconGridiconsFullscreenExit: typeof import('~icons/gridicons/fullscreen-exit')['default']
IconIcRoundDelete: typeof import('~icons/ic/round-delete')['default']
IconIcRoundMenu: typeof import('~icons/ic/round-menu')['default']
IconIcRoundPlus: typeof import('~icons/ic/round-plus')['default']
IconIcRoundRefresh: typeof import('~icons/ic/round-refresh')['default']
IconIcRoundSearch: typeof import('~icons/ic/round-search')['default']

View File

@@ -13,8 +13,6 @@ declare namespace Env {
readonly VITE_BASE_URL: string;
/** The title of the application */
readonly VITE_APP_TITLE: string;
/** The description of the application */
readonly VITE_APP_DESC: string;
/** The router history mode */
readonly VITE_ROUTER_HISTORY_MODE?: RouterHistoryMode;
/** The prefix of the iconify icon */
@@ -78,13 +76,6 @@ declare namespace Env {
* - Dynamic: the auth routes is generated in back-end
*/
readonly VITE_AUTH_ROUTE_MODE: 'static' | 'dynamic';
/**
* The home route key
*
* It only has effect when the auth route mode is static, if the route mode is dynamic, the home route key is
* defined in the back-end
*/
readonly VITE_ROUTE_HOME: import('@elegant-router/types').LastLevelRouteKey;
/**
* Default menu icon if menu icon is not set
*

View File

@@ -45,6 +45,9 @@ async function getCheckCode() {
if (!error) {
codeImg.value = `data:image/png;base64,${data.img}`;
model.uuid = data.uuid;
if (data?.text) {
model.code = data.text;
}
}
}
</script>

View File

@@ -124,7 +124,7 @@ const showSteps = computed(() => !isMobile.value);
:current="currentStep"
size="small"
class="max-w-full mb-16px"
:direction="'horizontal'"
direction="horizontal"
:responsive="false"
>
<AStep :title="t('page.login.register.basicInfo')" />