设备维护增加系统品牌、网口、位置和 IP;排产甘特图可选择设备并展示未完成任务。派工待派数量按已派工计算,兼容补料。 Co-authored-by: Cursor <cursoragent@cursor.com>
44 lines
1.1 KiB
TypeScript
44 lines
1.1 KiB
TypeScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
base: '/',
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, 'src')
|
|
}
|
|
},
|
|
build: {
|
|
chunkSizeWarningLimit: 2000,
|
|
//outDir: resolve(__dirname, '../csy-ui/src/main/resources/static'),
|
|
emptyOutDir: true
|
|
},
|
|
server: {
|
|
host: true, // 监听 0.0.0.0,避免本机 IP 变化导致 EADDRNOTAVAIL
|
|
port: 3000,
|
|
proxy: {
|
|
'/api': {
|
|
//target:'http://192.168.12.12:8888/',
|
|
//target:'http://192.168.12.4:8888/',
|
|
// target:'http://192.168.12.4:8888/',
|
|
//target:'http://192.168.12.230:8888',
|
|
//target:'http://192.168.5.230:8888',
|
|
target:'http://192.168.5.232:8888/',
|
|
//target:'http://localhost:8888',
|
|
changeOrigin: true
|
|
},
|
|
'/druid': {
|
|
target: 'http://localhost:8888',
|
|
changeOrigin: true
|
|
},
|
|
'/ws': {
|
|
target: 'ws://localhost:8888',
|
|
ws: true,
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
}
|
|
})
|