Fix new site info not fresh bug.

This commit is contained in:
Kenshin 2018-07-25 10:57:26 +08:00
parent ba5e33a064
commit 8c01dcff18

View File

@ -204,6 +204,7 @@ function siteeditorRender( url, site, type, info ) {
// set remote site( include info )
storage.remote = JSON.parse(JSON.stringify( cur_site ));
info && ( storage.remote.info = info );
changeSiteinfo( storage.remote.info );
const doms = <Editor site={ cur_site } state={ state } />;
ReactDOM.render( doms, $( ".custom .preview" )[0] );