|
|
@@ -56,11 +56,19 @@ module.exports = {
|
|
|
// 9. /sop/companySopRole → 后端是 /companySopRole
|
|
|
//
|
|
|
|
|
|
- // === 批量路径重写:/store/store/* → /store/* ===
|
|
|
- [process.env.VUE_APP_BASE_API + '/store/store']: {
|
|
|
+ // === 批量路径重写:/store/store/ → /store/ (仅匹配 hisStore 二级目录下的 store 前缀) ===
|
|
|
+ // 注意:此规则仅匹配前端 api/hisStore/store*.js 中 url 以 /store/store/ 开头的请求
|
|
|
+ // 不匹配 /store/storeProduct 等路径
|
|
|
+ [process.env.VUE_APP_BASE_API + '/store/store/']: {
|
|
|
target: 'http://localhost:8006',
|
|
|
changeOrigin: true,
|
|
|
- pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/store/store']: '/store' }
|
|
|
+ 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',
|
|
|
+ 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']: {
|
|
|
@@ -517,6 +525,175 @@ module.exports = {
|
|
|
// === /his/integralOrder → /his/integralOrder (直接透传) ===
|
|
|
// === /his/redPacket → /his/redPacket (直接透传) ===
|
|
|
|
|
|
+ // === /company/wxAccount → /company/wxUser (微信账号) ===
|
|
|
+ [process.env.VUE_APP_BASE_API + '/company/wxAccount']: {
|
|
|
+ target: 'http://localhost:8006',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ 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',
|
|
|
+ changeOrigin: true,
|
|
|
+ pathRewrite: { ['^' + process.env.VUE_APP_BASE_API + '/crm/customer/list']: '/crm/customer/getCustomerList' }
|
|
|
+ },
|
|
|
+
|
|
|
// watch-api → fs-watch 微服务(需要单独启动 fs-watch)
|
|
|
[process.env.VUE_APP_BASE_API + '/watch-api']: {
|
|
|
target: 'http://localhost:8010',
|