mirror of
https://github.com/Kenshin/simpread.git
synced 2026-02-01 15:41:29 +00:00
Format source.
This commit is contained in:
parent
66a8143cb4
commit
101b470870
@ -111,8 +111,8 @@ export default class SitesOpts extends React.Component {
|
||||
const count = storage.pr.Addsites( result );
|
||||
storage.Writesite( storage.pr.sites, () => {
|
||||
watch.SendMessage( "site", true );
|
||||
count == 0 ? new Notify().Render( "适配列表已同步至最新版本,2 秒后自动自动刷新。" ) : new Notify().Render( 0, `适配列表已同步成功,本次新增 ${ count } 个站点,2 秒后自动自动刷新。` );
|
||||
setTimeout( ()=>location.reload(), 2000 );
|
||||
count == 0 ? new Notify().Render( "适配列表已同步至最新版本。" ) : new Notify().Render( 0, `适配列表已同步成功,本次新增 ${ count } 个站点,2 秒后自动自动刷新。` );
|
||||
count > 0 && setTimeout( ()=>location.reload(), 2000 );
|
||||
});
|
||||
} else {
|
||||
new Notify().Render( 3, `同步时发生了一些问题,并不会影响本地配置文件,请稍后再试!` );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user