Fix notification deletion bug: save {} instead of [] when list is empty
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>
This commit is contained in:
co-authored by
Sunwuyuan
parent
65b08653c8
commit
056225b6b3
@@ -1,15 +1,26 @@
|
||||
<template>
|
||||
<v-container class="fill-height">
|
||||
<v-responsive class="align-centerfill-height mx-auto" max-width="900">
|
||||
<v-img class="mb-4" height="150" src="@/assets/logo.svg"/>
|
||||
<v-responsive
|
||||
class="align-centerfill-height mx-auto"
|
||||
max-width="900"
|
||||
>
|
||||
<v-img
|
||||
class="mb-4"
|
||||
height="150"
|
||||
src="@/assets/logo.svg"
|
||||
/>
|
||||
|
||||
<div class="text-center">
|
||||
<div class="text-body-2 font-weight-light mb-n1">出现了错误</div>
|
||||
<div class="text-body-2 font-weight-light mb-n1">
|
||||
出现了错误
|
||||
</div>
|
||||
|
||||
<h1 class="text-h2 font-weight-bold">404</h1>
|
||||
<h1 class="text-h2 font-weight-bold">
|
||||
404
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div class="py-4"/>
|
||||
<div class="py-4" />
|
||||
|
||||
<v-row>
|
||||
<v-col cols="12">
|
||||
@@ -21,15 +32,19 @@
|
||||
variant="outlined"
|
||||
>
|
||||
<template #image>
|
||||
<v-img position="top right"/>
|
||||
<v-img position="top right" />
|
||||
</template>
|
||||
|
||||
<template #title>
|
||||
<h2 class="text-h5 font-weight-bold">为什么会出现此错误?</h2>
|
||||
<h2 class="text-h5 font-weight-bold">
|
||||
为什么会出现此错误?
|
||||
</h2>
|
||||
</template>
|
||||
|
||||
<template #subtitle>
|
||||
<div class="text-subtitle-1">大概是页面未找到</div>
|
||||
<div class="text-subtitle-1">
|
||||
大概是页面未找到
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<v-overlay
|
||||
@@ -70,7 +85,7 @@
|
||||
rounded="lg"
|
||||
title="返回上一页"
|
||||
variant="text"
|
||||
@click="this.$router.back()"
|
||||
@click="$router.back()"
|
||||
>
|
||||
<v-overlay
|
||||
contained
|
||||
|
||||
Reference in New Issue
Block a user