We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
用你代码,主应用启动 vue2, 子应用启动3个(sidebar、vite-vue3、vue2) 说下vite-vue3中的这段
vue2
sidebar
vite-vue3
// src/main // 微前端环境下,注册mount和unmount方法 if (window.__MICRO_APP_BASE_APPLICATION__) { // @ts-ignore window['micro-app-appname-vite'] = { mount, unmount } } else { // 非微前端环境直接渲染 mount() }
if
mount
@mounted='handleMount'
window['micro-app-appname-vite']
mount()
unmount
vite 肯定是可以作为vue2的子应用的,因为你有demo可以,期望你们并没有放出demo的代码,或者修复一下当前仓库
The text was updated successfully, but these errors were encountered:
No branches or pull requests
用你代码,主应用启动
vue2
, 子应用启动3个(sidebar
、vite-vue3
、vue2
)说下
vite-vue3
中的这段if
,但页面并没有渲染,没有执行mount
,但主应用中的@mounted='handleMount'
却执行了,在控制台看到window['micro-app-appname-vite']
有值mount()
,子应用挂载正常渲染,但切别的子应用时没有走unmount
unmount
,而且你demo好像并不是这个仓库。vite 肯定是可以作为vue2的子应用的,因为你有demo可以,期望你们并没有放出demo的代码,或者修复一下当前仓库
The text was updated successfully, but these errors were encountered: