Giter Site home page Giter Site logo

Comments (3)

2869783364 avatar 2869783364 commented on June 10, 2024

子应用该如何改造

from jeecg-boot.

zhangdaiscott avatar zhangdaiscott commented on June 10, 2024

https://help.jeecg.com/2dev/qiankun.html

from jeecg-boot.

2869783364 avatar 2869783364 commented on June 10, 2024

在jeecg-bootVue3中的main.ts中没有render方法,需要我重新写一个吗?如果我重新写的话bootstrap中挂载和初始化的东西改怎么改造?async function bootstrap() {
// 创建应用实例

app = createApp(App);

// 多语言配置,异步情况:语言文件可以从服务器端获得
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 app 加载完成!")
}

from jeecg-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.