fix: 修改路由

This commit is contained in:
NICE CODE BY DEV 2024-04-23 10:37:32 +08:00
parent cc69961d94
commit bb22f22373
3 changed files with 7 additions and 2 deletions

View File

@ -18,6 +18,6 @@ export default defineConfig({
routes,
npmClient: 'pnpm',
define: {
APP_ENV: process.env.APP_ENV || 'development',
APP_ENV: process.env.NODE_ENV || 'production',
},
});

View File

@ -1,4 +1,9 @@
const routes = [
{
name: 'home',
path: '/',
redirect: '/material/home',
},
{
name: 'cabinet',
path: '/cabinet/*',

View File

@ -3,7 +3,7 @@
"private": true,
"author": "dev <710328466@qq.com>",
"scripts": {
"build:master": "max build",
"build:master": "cross-env APP_ENV=production max build",
"comp": "cross-env max g component",
"dev": "max dev",
"format": "prettier --cache --write .",