修改cdn地址,增加重启服务延迟

This commit is contained in:
whyour 2022-01-20 19:02:29 +08:00
parent 8c0685202e
commit a2650715b3
3 changed files with 10 additions and 10 deletions

View File

@ -39,11 +39,11 @@ export default defineConfig({
scripts: [ scripts: [
'https://gw.alipayobjects.com/os/lib/react/16.13.1/umd/react.production.min.js', 'https://gw.alipayobjects.com/os/lib/react/16.13.1/umd/react.production.min.js',
'https://gw.alipayobjects.com/os/lib/react-dom/16.13.1/umd/react-dom.production.min.js', 'https://gw.alipayobjects.com/os/lib/react-dom/16.13.1/umd/react-dom.production.min.js',
'https://cdn.jsdelivr.net/npm/darkreader@4.9.40/darkreader.min.js', 'https://unpkg.zhimg.com/darkreader@4.9.40/darkreader.js',
'https://cdn.jsdelivr.net/npm/codemirror@5/lib/codemirror.min.js', 'https://unpkg.zhimg.com/codemirror@5/lib/codemirror.js',
'https://cdn.jsdelivr.net/npm/codemirror@5/mode/shell/shell.js', 'https://unpkg.zhimg.com/codemirror@5/mode/shell/shell.js',
'https://cdn.jsdelivr.net/npm/codemirror@5/mode/python/python.js', 'https://unpkg.zhimg.com/codemirror@5/mode/python/python.js',
'https://cdn.jsdelivr.net/npm/codemirror@5/mode/javascript/javascript.js', 'https://unpkg.zhimg.com/codemirror@5/mode/javascript/javascript.js',
'https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js', 'https://unpkg.zhimg.com/sockjs-client@1/dist/sockjs.min.js',
], ],
}); });

View File

@ -61,7 +61,7 @@ const CronLogModal = ({
<Countdown <Countdown
className="inline-countdown" className="inline-countdown"
format="ss" format="ss"
value={Date.now() + 1000 * 10} value={Date.now() + 1000 * 30}
/> />
</span> </span>
@ -70,7 +70,7 @@ const CronLogModal = ({
}); });
setTimeout(() => { setTimeout(() => {
window.location.reload(); window.location.reload();
}, 10000); }, 30000);
} }
} }
}) })

View File

@ -172,7 +172,7 @@ const CheckUpdate = ({ socketMessage }: any) => {
<Countdown <Countdown
className="inline-countdown" className="inline-countdown"
format="ss" format="ss"
value={Date.now() + 1000 * 10} value={Date.now() + 1000 * 30}
/> />
</span> </span>
@ -181,7 +181,7 @@ const CheckUpdate = ({ socketMessage }: any) => {
}); });
setTimeout(() => { setTimeout(() => {
window.location.reload(); window.location.reload();
}, 10000); }, 30000);
} }
}, [socketMessage]); }, [socketMessage]);