style: menu style

This commit is contained in:
jialin
2025-02-17 13:49:55 +08:00
parent c60015bd09
commit db53920153
8 changed files with 26 additions and 150 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { defineConfig } from '@umijs/max';
import keepAlive from './keep-alive';
import proxy from './proxy';
import routes from './routes';
import theme from './theme';
@@ -90,7 +91,7 @@ export default defineConfig({
model: {},
initialState: {},
request: {},
keepalive: ['/playground/text-to-image', '/playground/speech'],
keepalive: keepAlive,
locale: {
antd: true,
baseNavigator: true,
+6
View File
@@ -0,0 +1,6 @@
export const keepAliveRoutes = {
text2images: '/playground/text-to-image',
speech: '/playground/speech'
};
export default [keepAliveRoutes.text2images, keepAliveRoutes.speech];
+4 -2
View File
@@ -1,3 +1,5 @@
import { keepAliveRoutes } from './keep-alive';
export default [
{
name: 'dashboard',
@@ -28,7 +30,7 @@ export default [
{
name: 'text2images',
title: 'Text2Images',
path: '/playground/text-to-image',
path: keepAliveRoutes.text2images,
key: 'text2images',
icon: 'Comment',
component: './playground/images'
@@ -36,7 +38,7 @@ export default [
{
name: 'speech',
title: 'Speech',
path: '/playground/speech',
path: keepAliveRoutes.speech,
key: 'speech',
icon: 'Comment',
component: './playground/speech'