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
3.6.0
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 应用加载完成!”) }
The text was updated successfully, but these errors were encountered:
jeecgBoot vue3可作为主应用,不支持作为子应用(可使用其它项目作为子应用)。
例子效果如下:
主应用更改:
子应用(别的项目):
Sorry, something went wrong.
No branches or pull requests
版本号:
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处理效率):
The text was updated successfully, but these errors were encountered: