mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
22 lines
621 B
JavaScript
22 lines
621 B
JavaScript
export default {
|
|
widget:
|
|
{
|
|
content: /*html*/`
|
|
<button
|
|
class="gui-settings-flat-button"
|
|
id="clear-cache">
|
|
<i class="icon-clear"></i>
|
|
<span>清除缓存</span>
|
|
</button>`,
|
|
condition: () => typeof offlineData === "undefined",
|
|
success: () =>
|
|
{
|
|
$("#clear-cache").on("click", () =>
|
|
{
|
|
settings.cache = {};
|
|
saveSettings(settings);
|
|
Toast.success("已删除全部缓存.", "清除缓存", 5000);
|
|
});
|
|
}
|
|
},
|
|
}; |