RC5融合图表无法正常工作

RC5融合图表无法正常工作

I am using Angular2 rc5 with routing, So in index.html I wrotedocument.write('<base href="' + document.location + '" />')I am using fusion charts in my app.I have 2 charts in following url in components/fusion1 chart here works properly default url for appand when I click on link the url becomes now/fusion2 here chart won't render properly it displays labels but wont render palette colors.If we see fill url in svg it displays like thisfill=url('localhost:8443/fusion1#588xr___120_278_216__rgba_0_174_141_1_:0-rgba_0_174_141_1_:100')My fill url is not taking updated route url which has to takelocalhost:8443/fusion2any help will be appreciated. 解决方案 Provide APP_BASE_HREF instead of the <base> tag to configure the router, then you can set <base href="..."> independent of the router.providers: [{provide: APP_BASE_HREF, useValue: '/'}]See also Angular 2 router no base href set 这篇关于由于基本href标记,带有路由的Angular2 RC5融合图表无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-22 13:35