style: menu style
This commit is contained in:
+2
-1
@@ -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,
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
export const keepAliveRoutes = {
|
||||
text2images: '/playground/text-to-image',
|
||||
speech: '/playground/speech'
|
||||
};
|
||||
|
||||
export default [keepAliveRoutes.text2images, keepAliveRoutes.speech];
|
||||
+4
-2
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user