|
@@ -16,6 +16,7 @@
|
|
|
clickable
|
|
|
style="--n-color-modal: none"
|
|
|
:show-divider="false"
|
|
|
+ v-if="messageList.length > 0"
|
|
|
>
|
|
|
<n-list-item
|
|
|
v-for="(ms, index) in messageList"
|
|
@@ -46,6 +47,9 @@
|
|
|
</n-flex>
|
|
|
</n-list-item>
|
|
|
</n-list>
|
|
|
+ <div v-else class="mt-16">
|
|
|
+ <n-empty description="暂没数据"></n-empty>
|
|
|
+ </div>
|
|
|
</n-drawer-content>
|
|
|
</n-drawer>
|
|
|
</template>
|
|
@@ -53,7 +57,14 @@
|
|
|
<script setup lang="ts">
|
|
|
import { computed, onBeforeMount, onMounted, ref } from 'vue'
|
|
|
import { useMainStore } from '@/store'
|
|
|
-import { NList, NListItem, NDropdown, useDialog, useMessage } from 'naive-ui'
|
|
|
+import {
|
|
|
+ NList,
|
|
|
+ NListItem,
|
|
|
+ NDropdown,
|
|
|
+ NEmpty,
|
|
|
+ useDialog,
|
|
|
+ useMessage
|
|
|
+} from 'naive-ui'
|
|
|
import {
|
|
|
fetchMessageList,
|
|
|
auditMessage,
|