ソースを参照

提交了

shengtang
ranyuqi 1年前
コミット
0c2277e8ca
3個のファイルの変更9行の追加6行の削除
  1. +3
    -0
      frontend/config/config.ts
  2. +1
    -1
      frontend/config/proxy.ts
  3. +5
    -5
      frontend/config/routes.ts

+ 3
- 0
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,

/**


+ 1
- 1
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'
},


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


読み込み中…
キャンセル
保存