feat: 系统更新按钮
parent
b65802d074
commit
ef2d9ba365
@ -0,0 +1,15 @@
|
||||
import { Button } from 'antd';
|
||||
import { clearAllCaches } from '@/utils/commons';
|
||||
|
||||
const ReloadUpdate = ({ ...props }) => {
|
||||
const forceReload = async () => {
|
||||
await clearAllCaches();
|
||||
window.location.reload(true);
|
||||
};
|
||||
return (
|
||||
<Button type='default' onClick={forceReload} className='ms-2'>
|
||||
🔃🚀
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
export default ReloadUpdate;
|
||||
Loading…
Reference in New Issue