When all notifications are deleted, the persistentNotifications array
becomes empty ([]). The backend doesn't accept an empty array as a
valid value, requiring an empty object ({}) instead. This fix modifies
both index.vue and UrgentTestDialog.vue to save {} when the
notification list is empty.
Co-authored-by: Sunwuyuan <88357633+Sunwuyuan@users.noreply.github.com>
37 lines
813 B
Vue
37 lines
813 B
Vue
<template>
|
|
<settings-card
|
|
icon="mdi-cog"
|
|
title="编辑设置"
|
|
>
|
|
<v-list>
|
|
<setting-item :setting-key="'edit.autoSave'" />
|
|
|
|
|
|
<v-divider class="my-2" />
|
|
<setting-item :setting-key="'edit.blockNonTodayAutoSave'" />
|
|
|
|
|
|
<v-divider class="my-2" />
|
|
<setting-item :setting-key="'edit.confirmNonTodaySave'" />
|
|
|
|
|
|
<v-divider class="my-2" />
|
|
<setting-item :setting-key="'edit.refreshBeforeEdit'" />
|
|
|
|
|
|
<v-divider class="my-2" />
|
|
<setting-item :setting-key="'edit.autoSavePromptText'" />
|
|
|
|
|
|
<v-divider class="my-2" />
|
|
<setting-item :setting-key="'edit.manualSavePromptText'" />
|
|
</v-list>
|
|
</settings-card>
|
|
</template>
|
|
|
|
<script>
|
|
import SettingsCard from '@/components/SettingsCard.vue';
|
|
import SettingItem from '../SettingItem.vue';
|
|
|
|
</script>
|