Skip to content
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

jeecg-bootVue3该怎么集成到乾坤框架中?子应用该怎么改造? #1149

Open
2869783364 opened this issue Jan 8, 2024 · 0 comments

Comments

@2869783364
Copy link

版本号:

3.6.0

前端版本:vue3版?还是 vue2版?

Vue3

问题描述:

在jeecg-bootVue3中的main.ts中没有render方法,需要我重新写一个吗?如果我重新写的话bootstrap中挂载和初始化的东西改怎么改造?

截图&代码:

async function bootstrap() { /
/ 创建应用实例

app = createApp(应用);

多语言配置,异步情况:语言文件可以从服务器端获得
await setupI18n(app);

配置存储
setupStore(app);

初始化内部系统配置
initAppConfigStore();

注册外部模块路由(注册online模块lib)
registerPackages(app);

注册全局组件
registerGlobComp(app);

CAS单点登录
await useSso().ssoLogin();

配置路由
setupRouter(app);

路由保护
setupRouterGuard(router);

注册全局指令
setupGlobDirectives(app);

配置全局错误处理
setupErrorHandle(app);

注册第三方组件
await registerThirdComp(app);

当路由准备好时再执行挂载( https://next.router.vuejs.org/api/#isready)
await router.isReady();

挂载应用
app.mount('#app', true);

console.log(“ Vue3 应用加载完成!”)
}

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
@zhangdaiscott zhangdaiscott transferred this issue from jeecgboot/jeecg-boot Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant