clean cache after saving
This commit is contained in:
@@ -106,9 +106,7 @@ const Setting: FC = () => {
|
||||
setIsSaveProcessing(true)
|
||||
|
||||
try {
|
||||
console.log('🔥 [Setting] Data before export:', JSON.stringify(data, null, 2));
|
||||
const html = await exportPersonalityToHTML(data)
|
||||
console.log('🔥 [Setting] HTML exported successfully, length:', html.length);
|
||||
|
||||
setIsCapturingScreenshot(true)
|
||||
const screenshotFile = await capturePersonalityScreenshot(templateName)
|
||||
@@ -129,6 +127,7 @@ const Setting: FC = () => {
|
||||
}, {
|
||||
onSuccess: (data) => {
|
||||
toast(data?.data?.message || 'قالب با موفقیت بروزرسانی شد', 'success')
|
||||
window.location.href = Paths.settingPersonalityList
|
||||
},
|
||||
onError: () => {
|
||||
toast('خطا در بروزرسانی قالب', 'error')
|
||||
@@ -143,6 +142,7 @@ const Setting: FC = () => {
|
||||
}, {
|
||||
onSuccess: (data) => {
|
||||
toast(data?.data?.message || 'قالب با موفقیت ایجاد شد', 'success')
|
||||
window.location.href = Paths.settingPersonalityList
|
||||
},
|
||||
onError: () => {
|
||||
toast('خطا در ایجاد قالب', 'error')
|
||||
|
||||
Reference in New Issue
Block a user