fosun-microfrontend
v2.1.2
Published
微前端框架
Downloads
48
Readme
(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