|
|
@@ -42,9 +42,9 @@ module.exports = {
|
|
|
proxy: {
|
|
|
|
|
|
|
|
|
- // ===== 前端路径与后端不一致的路径重写 → fs-company(8006) =====
|
|
|
+ // ===== 前端路径与后端不一致的路径重写 → fs-admin-saas(8004) =====
|
|
|
//
|
|
|
- // saasadminui 前端 API 路径与 fs-company 后端控制器路径存在以下不一致:
|
|
|
+ // saasadminui 前端 API 路径与 fs-admin-saas 后端控制器路径存在以下不一致:
|
|
|
// 1. /store/store/* → 后端是 /store/* (前端多了一层 store)
|
|
|
// 2. /store/his/* → 后端是 /his/* (前端 store/his 实际是 his)
|
|
|
// 3. /his/fsXxx → 后端是 /store/xxx (his/fs 前缀映射到 store)
|
|
|
@@ -60,91 +60,91 @@ module.exports = {
|
|
|
// 注意:此规则仅匹配前端 api/hisStore/store*.js 中 url 以 /store/store/ 开头的请求
|
|
|
// 不匹配 /store/storeProduct 等路径
|
|
|
[process.env.VUE_APP_BASE_API + '/store/store/']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/store/']: '/store/' }
|
|
|
},
|
|
|
// === /store/store/storeOrder → /hisStore/fsStoreOrderScrm (hisStore订单API在fs-admin-saas) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/store/storeOrder']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/store/storeOrder']: '/hisStore/fsStoreOrderScrm' }
|
|
|
},
|
|
|
// === 批量路径重写:/store/his/* → /his/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/his']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/his']: '/his' }
|
|
|
},
|
|
|
// === 批量路径重写:/store/doctor/* → /his/doctor/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/doctor']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/doctor']: '/his/doctor' }
|
|
|
},
|
|
|
// === 批量路径重写:/store/healthTongue/* → /his/healthTongue/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/healthTongue']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/healthTongue']: '/his/healthTongue' }
|
|
|
},
|
|
|
// === 批量路径重写:/store/inquiryOrder/* → /his/inquiryOrder/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/inquiryOrder']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/inquiryOrder']: '/his/inquiryOrder' }
|
|
|
},
|
|
|
// === 批量路径重写:/store/prescribeDrug/* → /his/prescribeDrug/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/prescribeDrug']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/prescribeDrug']: '/his/prescribeDrug' }
|
|
|
},
|
|
|
// === 批量路径重写:/store/healthStoreOrder/* → /hisStore/fsStoreOrderScrm/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/healthStoreOrder']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/healthStoreOrder']: '/hisStore/fsStoreOrderScrm' }
|
|
|
},
|
|
|
// === 批量路径重写:/store/operlogScrm/* → /hisStore/operlogScrm/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/operlogScrm']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/operlogScrm']: '/hisStore/operlogScrm' }
|
|
|
},
|
|
|
// === 批量路径重写:/store/storeOrderOffline/* → /hisStore/fsStoreOrderOfflineScrm/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/storeOrderOffline']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/storeOrderOffline']: '/hisStore/fsStoreOrderOfflineScrm' }
|
|
|
},
|
|
|
// === 批量路径重写:/store/storeOrderAudit/* → /hisStore/fsStoreOrderAuditScrm/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/storeOrderAudit']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/storeOrderAudit']: '/hisStore/fsStoreOrderAuditScrm' }
|
|
|
},
|
|
|
// === 批量路径重写:/store/recommend/* → /store/storeRecommend/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/recommend']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/recommend']: '/store/storeRecommend' }
|
|
|
},
|
|
|
// === 批量路径重写:/store/storeActivity/* → /hisStore/fsStoreActivityScrm/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/storeActivity']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/storeActivity']: '/hisStore/fsStoreActivityScrm' }
|
|
|
},
|
|
|
// === 批量路径重写:/store/collectionSchedule/* → /hisStore/fsCollectionScheduleScrm/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/store/collectionSchedule']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/collectionSchedule']: '/hisStore/fsCollectionScheduleScrm' }
|
|
|
},
|
|
|
// === his_store/* → hisStore/* (下划线转驼峰) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/his_store']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his_store']: '/hisStore' }
|
|
|
},
|
|
|
@@ -156,56 +156,56 @@ module.exports = {
|
|
|
},
|
|
|
// === /fast_gpt/* → /fastGpt/* ===
|
|
|
[process.env.VUE_APP_BASE_API + '/fast_gpt']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/fast_gpt']: '/fastGpt' }
|
|
|
},
|
|
|
// === /wxSop/sopUserLogsWx → /qwSop/sopUserLogs ===
|
|
|
[process.env.VUE_APP_BASE_API + '/wxSop/sopUserLogsWx']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/wxSop/sopUserLogsWx']: '/qwSop/sopUserLogs' }
|
|
|
},
|
|
|
// === /sop/companySopRole → /companySopRole ===
|
|
|
[process.env.VUE_APP_BASE_API + '/sop/companySopRole']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/sop/companySopRole']: '/companySopRole' }
|
|
|
},
|
|
|
// === /company/ 路径无需特殊重写,走全局代理(只去掉 /dev-api 前缀,保留 /company/xxx)===
|
|
|
// === /qw/qwInformation → /qw/information ===
|
|
|
[process.env.VUE_APP_BASE_API + '/qw/qwInformation']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/qw/qwInformation']: '/qw/information' }
|
|
|
},
|
|
|
// === /qw/qwAppContactWayLogs → /qw/appContactWayLogs ===
|
|
|
[process.env.VUE_APP_BASE_API + '/qw/qwAppContactWayLogs']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/qw/qwAppContactWayLogs']: '/qw/appContactWayLogs' }
|
|
|
},
|
|
|
// === /qw/qwPushCount → /qw/pushCount ===
|
|
|
[process.env.VUE_APP_BASE_API + '/qw/qwPushCount']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/qw/qwPushCount']: '/qw/pushCount' }
|
|
|
},
|
|
|
// === /qw/records → /qw/record ===
|
|
|
[process.env.VUE_APP_BASE_API + '/qw/records']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/qw/records']: '/qw/record' }
|
|
|
},
|
|
|
// === /qw/workLinkUser → /qw/workLink ===
|
|
|
[process.env.VUE_APP_BASE_API + '/qw/workLinkUser']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/qw/workLinkUser']: '/qw/workLink' }
|
|
|
},
|
|
|
// === /qw/workUser → /qw/work ===
|
|
|
[process.env.VUE_APP_BASE_API + '/qw/workUser']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/qw/workUser']: '/qw/work' }
|
|
|
},
|
|
|
@@ -222,185 +222,185 @@ module.exports = {
|
|
|
|
|
|
// his/fsXxx → store/xxx(saasadminui 用 his/fs 前缀,后端用 store)
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsStoreOrder']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsStoreOrder']: '/store/storeOrder' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsInquiryOrderReport']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsInquiryOrderReport']: '/store/inquiryOrderReport' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsInquiryOrder']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsInquiryOrder']: '/store/inquiryOrder' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsDrugReportCount']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsDrugReportCount']: '/store/drugReportCount' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsDrugReport']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsDrugReport']: '/store/drugReport' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsHealthData']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsHealthData']: '/store/healthData' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsHealthRecord']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsHealthRecord']: '/store/healthRecord' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsUserOnlineState']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsUserOnlineState']: '/store/userOnlineState' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsUserCoupon']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsUserCoupon']: '/store/userCoupon' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsUserAddress']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsUserAddress']: '/store/userAddress' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsUser']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsUser']: '/store/user' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsMaterialGroup']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsMaterialGroup']: '/store/materialGroup' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsMaterial']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsMaterial']: '/store/material' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsExportTask']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsExportTask']: '/store/exportTask' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsCoupon']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsCoupon']: '/store/coupon' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsPatient']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsPatient']: '/store/patient' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsPackage']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsPackage']: '/store/package' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsStoreProductCategory']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsStoreProductCategory']: '/store/storeProductCategory' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsStoreProduct']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsStoreProduct']: '/store/storeProduct' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsStoreAfterSales']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsStoreAfterSales']: '/store/storeAfterSales' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsPayment']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsPayment']: '/store/storePayment' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsStoreOrderOffline']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsStoreOrderOffline']: '/hisStore/fsStoreOrderOfflineScrm' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsStoreOrderAudit']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsStoreOrderAudit']: '/hisStore/fsStoreOrderAuditScrm' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsStoreOrderBillLog']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsStoreOrderBillLog']: '/bill/billLog' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsStoreStatistics']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsStoreStatistics']: '/hisStore/fsStoreStatisticsScrm' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsIcd']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsIcd']: '/store/icd' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsPrescribe']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsPrescribe']: '/store/prescribe' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsFollowTemp']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsFollowTemp']: '/store/followTemp' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsCollectionSchedule']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsCollectionSchedule']: '/store/collectionSchedule' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsCollection']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsCollection']: '/store/collection' }
|
|
|
},
|
|
|
// his/fsFirstDiagnosis → his/diagnosis
|
|
|
[process.env.VUE_APP_BASE_API + '/his/fsFirstDiagnosis']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/his/fsFirstDiagnosis']: '/his/diagnosis' }
|
|
|
},
|
|
|
// hisStore/collection → store/collection
|
|
|
[process.env.VUE_APP_BASE_API + '/hisStore/collection']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/hisStore/collection']: '/store/collection' }
|
|
|
},
|
|
|
// wx/wxSop* → qwSop/sopUserLogs* (企微SOP)
|
|
|
[process.env.VUE_APP_BASE_API + '/wx/wxSopUserInfo']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/wx/wxSopUserInfo']: '/qwSop/sopUserLogsInfo' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/wx/wxSopUser']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/wx/wxSopUser']: '/qwSop/sopUserLogs' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/wx/wxSopLogs']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/wx/wxSopLogs']: '/qwSop/sopUserLogsInfo' }
|
|
|
},
|
|
|
[process.env.VUE_APP_BASE_API + '/wx/wxSop']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/wx/wxSop']: '/qwSop/sopUserLogs' }
|
|
|
},
|
|
|
@@ -527,169 +527,169 @@ module.exports = {
|
|
|
|
|
|
// === /company/wxAccount → /company/wxUser (微信账号) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/company/wxAccount']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/company/wxAccount']: '/company/wxUser' }
|
|
|
},
|
|
|
// === /user/darkRoom → /store/user/darkRoomList (小黑屋) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/user/darkRoom']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/user/darkRoom']: '/store/user/darkRoomList' }
|
|
|
},
|
|
|
// === /user/transfer → /system/approval (转接管理) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/user/transfer']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/user/transfer']: '/system/approval' }
|
|
|
},
|
|
|
// === /lobster/billing → /workflow/lobster/billing (龙虾计费) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/lobster/billing']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/lobster/billing']: '/workflow/lobster/billing' }
|
|
|
},
|
|
|
// === /lobster/prompt → /workflow/lobster/prompt (提示词) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/lobster/prompt']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/lobster/prompt']: '/workflow/lobster/prompt' }
|
|
|
},
|
|
|
// === /lobster/api-registry → /workflow/lobster/api-registry (接口注册中心) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/lobster/api-registry']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/lobster/api-registry']: '/workflow/lobster/api-registry' }
|
|
|
},
|
|
|
// === /lobster/dead-letter → /workflow/lobster/dead-letter (死信队列) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/lobster/dead-letter']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/lobster/dead-letter']: '/workflow/lobster/dead-letter' }
|
|
|
},
|
|
|
// === /lobster/event-audit → /workflow/lobster/event-audit (节点审核) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/lobster/event-audit']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/lobster/event-audit']: '/workflow/lobster/event-audit' }
|
|
|
},
|
|
|
// === /lobster/optimization → /workflow/lobster/optimization (AI优化建议) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/lobster/optimization']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/lobster/optimization']: '/workflow/lobster/optimization' }
|
|
|
},
|
|
|
// === /lobster/sales-corpus → /workflow/lobster/sales-corpus (销冠语料) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/lobster/sales-corpus']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/lobster/sales-corpus']: '/workflow/lobster/sales-corpus' }
|
|
|
},
|
|
|
// === /lobster/model-config → /company/aiProvider (模型配置→AI供应商) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/lobster/model-config']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/lobster/model-config']: '/company/aiProvider' }
|
|
|
},
|
|
|
// === /hisStore/storeOrder → /store/storeOrder (商城订单) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/hisStore/storeOrder']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/hisStore/storeOrder']: '/store/storeOrder' }
|
|
|
},
|
|
|
// === /hisStore/storeProduct → /store/storeProduct (商城商品) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/hisStore/storeProduct']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/hisStore/storeProduct']: '/store/storeProduct' }
|
|
|
},
|
|
|
// === /hisStore/storeProductPackage → /store/storeProductPackage (商品套餐) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/hisStore/storeProductPackage']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/hisStore/storeProductPackage']: '/store/storeProductPackage' }
|
|
|
},
|
|
|
// === /hisStore/storePayment → /store/storePayment (门店支付) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/hisStore/storePayment']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/hisStore/storePayment']: '/store/storePayment' }
|
|
|
},
|
|
|
// === /hisStore/userOnlineState → /store/userOnlineState (用户在线状态) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/hisStore/userOnlineState']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/hisStore/userOnlineState']: '/store/userOnlineState' }
|
|
|
},
|
|
|
// === /hisStore/storeProductCategory → /store/storeProductCategory (商品分类) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/hisStore/storeProductCategory']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/hisStore/storeProductCategory']: '/store/storeProductCategory' }
|
|
|
},
|
|
|
// === /live/liveData → /liveData/liveData (直播数据) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/live/liveData']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/live/liveData']: '/liveData/liveData' }
|
|
|
},
|
|
|
// === /live/liveConfig → /live/config (直播配置) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/live/liveConfig']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/live/liveConfig']: '/live/config' }
|
|
|
},
|
|
|
// === /live/liveConsole → /live/liveVideo (直播控制台→直播视频) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/live/liveConsole']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/live/liveConsole']: '/live/liveVideo' }
|
|
|
},
|
|
|
// === /course/courseAnswerlogs → /course/courseAnswerLog (答题记录) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/course/courseAnswerlogs']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/course/courseAnswerlogs']: '/course/courseAnswerLog' }
|
|
|
},
|
|
|
// === /course/coursePlaySourceConfig → /course/playSourceConfig (播放源配置) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/course/coursePlaySourceConfig']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/course/coursePlaySourceConfig']: '/course/playSourceConfig' }
|
|
|
},
|
|
|
// === /course/courseUserStatistics → /course/userWatchStatistics (用户统计) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/course/courseUserStatistics']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/course/courseUserStatistics']: '/course/userWatchStatistics' }
|
|
|
},
|
|
|
// === /course/category → /course/userCourseCategory (课程分类) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/course/category']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/course/category']: '/course/userCourseCategory' }
|
|
|
},
|
|
|
// === /hisStore/storeOrderAudit → /store/storeOrderAudit (订单审核) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/hisStore/storeOrderAudit']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/hisStore/storeOrderAudit']: '/hisStore/fsStoreOrderAuditScrm' }
|
|
|
},
|
|
|
// === /hisStore/storeOrderOffline → /hisStore/fsStoreOrderOfflineScrm (线下订单) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/hisStore/storeOrderOffline']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/hisStore/storeOrderOffline']: '/hisStore/fsStoreOrderOfflineScrm' }
|
|
|
},
|
|
|
// === /qw/QwWorkTask/qw/list → /qw/workTask/list (企微任务) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/qw/QwWorkTask/qw']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/qw/QwWorkTask/qw']: '/qw/workTask' }
|
|
|
},
|
|
|
// === /crm/customer/list → /crm/customer/getCustomerList (客户管理) ===
|
|
|
[process.env.VUE_APP_BASE_API + '/crm/customer/list']: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/crm/customer/list']: '/crm/customer/getCustomerList' }
|
|
|
},
|
|
|
@@ -701,9 +701,9 @@ module.exports = {
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/watch-api']: '' }
|
|
|
},
|
|
|
|
|
|
- // ===== 默认所有其他请求 → fs-company(8006) 租户服务端 =====
|
|
|
+ // ===== 默认所有其他请求 → fs-admin-saas(8004) 租户服务端 =====
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
- target: 'http://localhost:8006',
|
|
|
+ target: 'http://localhost:8004',
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '' }
|
|
|
}
|