-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
您好,我想用jeccg作为子应用接入,但是一直报错 #8
Comments
可以提供一个你配置好的 jeccg 项目吗,我快速定位下 |
你好,这是我配置过的,上传到gitee了, |
你可以注意下这几个地方:
registerMicroApps([
{
name: 'jeccgExamWeb',
entry: `//localhost:8182/jeccgWeb`,
container: '#micro',
activeRule: '/jeccgWeb'
},
)
文件位置:src\hooks\setting\index.ts // html 的 js 有沙箱,但是 import 进来的代码没有,所以得处理下
if (!window._CONFIG) window._CONFIG = {};
window._CONFIG && (window._CONFIG['domianURL'] = VITE_GLOB_DOMAIN_URL); |
你自己创建的 qiankun 主应用是好的,还是也会报错. 如果报错,你可以把主应用 git 地址提供下,我帮你看看,我用我自己示例跑你的没啥问题 |
我自己建的主应用用你的插件是可以正常挂载上去的,只是公司的项目主应用不行,公司项目用vite-plugin-qiankun能挂载,,,懵逼 |
那就有可能是你公司主应用 vite 版本的原因了,查看下版本,有没有 >= 3 |
和主应用的vite版本没啥关系吧?公司的主应用好像是vuecli,不是子应用的vite版本 >=3就可以吗 |
是这个原因不 |
想用https://github.com/jeecgboot/jeecgboot-vue3 作为子应用接入qiankun,但是没成功
The text was updated successfully, but these errors were encountered: