| | |
| | | /* |
| | | * @Date: 2024-03-23 09:49:06 |
| | | * @LastEditors: gaoshp |
| | | * @LastEditTime: 2024-10-06 10:17:18 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-11-27 14:59:26 |
| | | * @FilePath: /cps-web/vue.config.js |
| | | */ |
| | | const { defineConfig } = require('@vue/cli-service') |
| | |
| | | port: process.env.VUE_APP_PORT, //挂载端口 |
| | | proxy: { |
| | | '/api/smart-collect': { |
| | | target: 'http://120.46.212.231:4102', |
| | | target: 'http://120.46.212.231:5102', |
| | | // ws: true, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | '^/api': '/' |
| | | } |
| | | }, |
| | | '/api/blade-cps/workstation/listDatapointsByWorkstationId': { |
| | | target: 'http://120.46.212.231:4102', |
| | | '/workinghour': { |
| | | target: 'http://120.46.212.231:5102', |
| | | // ws: true, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | '^/api': '/' |
| | | } |
| | | }, |
| | | '/api/blade-cps/workstation/saveDatapoints': { |
| | | target: 'http://120.46.212.231:4102', |
| | | '/api/smis/workstation/saveDatapoints': { |
| | | target: 'http://120.46.212.231:5102', |
| | | // ws: true, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | '^/api': '/' |
| | | } |
| | | }, |
| | | '/api/blade-cps/workstation/export-dp': { |
| | | target: 'http://120.46.212.231:4102', |
| | | '/api/smis/workstation/export-dp': { |
| | | target: 'http://120.46.212.231:5102', |
| | | // ws: true, |
| | | changeOrigin: true, |
| | | pathRewrite: { |