From 0c2277e8ca7e820edb22f241a44590ca4d689b5b Mon Sep 17 00:00:00 2001 From: ranyuqi <836357039@qq.com> Date: Fri, 14 Jul 2023 18:11:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/config/config.ts | 3 +++ frontend/config/proxy.ts | 2 +- frontend/config/routes.ts | 10 +++++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/config/config.ts b/frontend/config/config.ts index 3a27d43..26f1218 100644 --- a/frontend/config/config.ts +++ b/frontend/config/config.ts @@ -14,6 +14,9 @@ export default defineConfig({ * @doc https://umijs.org/docs/api/config#hash */ history:{type:'hash'}, + + // 更改为history模式 + // history:{type:'browser'} hash: true, /** diff --git a/frontend/config/proxy.ts b/frontend/config/proxy.ts index f6eb85b..0f3ba6a 100644 --- a/frontend/config/proxy.ts +++ b/frontend/config/proxy.ts @@ -6,7 +6,7 @@ export default { dev: { '/api/': { - target: 'http://192.168.1.243:5000', + target: 'http://pztjapi.dev1.com', pathRewrite: { '/api': '/api' }, diff --git a/frontend/config/routes.ts b/frontend/config/routes.ts index 63d482f..7cea312 100644 --- a/frontend/config/routes.ts +++ b/frontend/config/routes.ts @@ -17,17 +17,17 @@ { path: '/base', icon: 'SettingOutlined', name: '基础数据管理', routes: [{ path: '/base/deviceinfo', name: '设备管理', component: './deviceInfo/index' }, - { path: '/base/lc', name: '料仓管理', component: './logs/index' }, + { path: '/base/stock', name: '料仓管理', component: './stock/index' }, { path: '/base/materials', name: '原料管理', component: './materials/index' }, - { path: '/base/tong', name: '桶管理', component: './logs/index' }, - { path: '/base/recipe', name: '成品管理', component: './recipe/index' }, + { path: '/base/bucket', name: '桶管理', component: './bucket/index' }, + { path: '/base/final', name: '成品管理', component: './final/index' }, ] }, { path: '/line', icon: 'SettingOutlined', name: '产线管理', routes: [ - { path: '/line/log1', name: '产线设备管理', component: './logs/index' }, - { path: '/line/log2', name: '分组', component: './logs/index' } + { path: '/line/manufacturing', name: '产线设备管理', component: './manufacturing/index' }, + { path: '/line/group', name: '分组', component: './group/index' } ] }, {