diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..f4d261a --- /dev/null +++ b/.env.development @@ -0,0 +1,11 @@ +# 开发环境(Vue CLI 默认 mode=development 时自动加载本文件) +# +# 主题通道接入说明(《云海子应用前端接入规范》§2.2 第一步): +# 1. public/index.html 已插入 A 类 loader,主题/皮肤由通道 /static/js/yh-theme-init.js 下发; +# 2. 本地 dev 的 /static 请求由 vue.config.js 的 devServer.proxy 兜到主题通道; +# 3. 默认通道地址 http://base.yunhaixingtong.com,联调本地通道源时用环境变量覆盖: +# YH_THEME_PROXY_TARGET=http://localhost:9527 npm run dev +# 4. 跨源直连(VITE_THEME_HOST)是 Vite 工程的机制,本项目为 Vue CLI(webpack), +# 内联脚本里的 %VITE_THEME_HOST% 会被判为占位符并置空,统一走上面的 dev 代理。 +# +# 说明:本文件不含敏感配置,仅作接入连法备忘。 diff --git a/config/index.js b/config/index.js index 516f488..c7740d3 100644 --- a/config/index.js +++ b/config/index.js @@ -1,7 +1,7 @@ window.conf = { - baseHost: "http://base.bestsch.com", - ssoHost: "http://sso.bestsch.com", - serviceUrl: "http://192.168.10.166:8087", - fileHost:'http://base.bestsch.com/ClassroomMan/file', + baseHost: "http://base.yunhaixingtong.com", + ssoHost: "http://sso.yunhaixingtong.com", + serviceUrl: "http://base.yunhaixingtong.com/userclass", + fileHost: "http://base.yunhaixingtong.com/userclass", isLayoutOld: false, }; \ No newline at end of file diff --git a/public/index.html b/public/index.html index d94e441..d989584 100644 --- a/public/index.html +++ b/public/index.html @@ -13,6 +13,26 @@ + +
diff --git a/src/frame/layout.vue b/src/frame/layout.vue index 6438498..9390cb0 100644 --- a/src/frame/layout.vue +++ b/src/frame/layout.vue @@ -99,7 +99,8 @@