This commit is contained in:
1 parent
9eb478b6d2
commit
24b35694ed
1 file changed
+9
-14
@@ -36,6 +36,15 @@
|
|||||||
addToast(form.error, 'error');
|
addToast(form.error, 'error');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$effect(() => {
|
||||||
|
const purgeError = data.settings['cache.purge_error'];
|
||||||
|
if (purgeError) {
|
||||||
|
addToast(
|
||||||
|
`内容已保存,但缓存刷新失败:${purgeError}。请检查缓存清理权限后重试保存。`,
|
||||||
|
'error'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="admin-page-header">
|
<div class="admin-page-header">
|
||||||
@@ -52,13 +61,6 @@
|
|||||||
bind:activeTab
|
bind:activeTab
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{#if data.settings['cache.purge_error']}
|
|
||||||
<p role="alert" class="cache-warning">
|
|
||||||
内容已保存,但最近一次缓存刷新失败:{data.settings['cache.purge_error']}。列表页最多可能延迟 5
|
|
||||||
分钟,详情页最多 1 小时更新。请检查缓存清理权限后重试保存。
|
|
||||||
</p>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<div class="settings-container">
|
<div class="settings-container">
|
||||||
{#if activeTab === 'basic'}
|
{#if activeTab === 'basic'}
|
||||||
<div class="basic-top-row">
|
<div class="basic-top-row">
|
||||||
@@ -364,13 +366,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.cache-warning {
|
|
||||||
padding: 16px;
|
|
||||||
background: #fff3cd;
|
|
||||||
color: #735400;
|
|
||||||
border-radius: 8px;
|
|
||||||
line-height: 1.6;
|
|
||||||
}
|
|
||||||
.admin-page-header {
|
.admin-page-header {
|
||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
border-bottom: 2px solid var(--text-color);
|
border-bottom: 2px solid var(--text-color);
|
||||||
|
|||||||
Reference in new issue
Block a user