chore: 主题通道第一步挂载 + 迁移 Vue3 前基线

This commit is contained in:
lijing
2026-10-20 15:16:49 +08:00
parent 5e85aae7e0
commit 0564f5f89d
5 changed files with 55 additions and 13 deletions
+18 -8
View File
@@ -76,14 +76,24 @@ module.exports = {
https: false, //是否开启https
hotOnly: true, //是否配置热更新
open: true, //配置自动启动浏览器
// proxy: { //配置多个代理跨域(配置一个 proxy: 'http://localhost:4000' )
// '/api': {
// target: 'http://basedebug.bestsch.com/BschHome',
// ws: true, //是否跨域
// changeOrigin: true,
// // pathRewrite: { '^/api': '' }
// }
// },
// 主题通道 dev 代理(A 类接入 §2.2 第一步):
// 本地开发时 /static/* 兜到主题通道(默认线上通道),联调本地通道源可覆盖:
// YH_THEME_PROXY_TARGET=http://localhost:9527 npm run dev
// 生产与通道同源,不依赖本代理。
proxy: {
"/static": {
target: process.env.YH_THEME_PROXY_TARGET || "http://base.yunhaixingtong.com",
changeOrigin: true,
ws: true
}
// 原有业务接口代理示例(按需启用):
// '/api': {
// target: 'http://basedebug.bestsch.com/BschHome',
// ws: true, //是否跨域
// changeOrigin: true,
// // pathRewrite: { '^/api': '' }
// }
},
overlay: {
//关闭eslint
warnings: false,