fosun-microfrontend
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published
(async function() {
    await getApplicationContainer().authService.setToken('asdfasfasd');
    await getApplicationContainer().authService.setUserInfo({
        username: 'weihq'
    });
    await getApplicationContainer().authService.setConfig({
        getUserInfo: () => {
            return {
                username: 'weihq'
            }
        }, 
        gotoLoginPage: () => {
            window.location.href = 'http://www.baidu.com';
        }
    });
    await start({
        homePage: '/root',
        apps: []
    });
})();


//  datepicker仅支持moment,初始化值需要转化为moment
//  字符串转化为moment:moment(str)
//  转化为字符串:value.format('YYYY-MM-DD HH:mm:ss')
let v1 = moment('20200302');
let str = v1.format('YYYY-MM-dd');

microfrontend-framework

Package Sidebar

Install

npm i fosun-microfrontend

Weekly Downloads

15

Version

2.1.2

License

none

Unpacked Size

425 kB

Total Files

176

Last publish

Collaborators

  • pccold