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' } ] }, {