修改bug

This commit is contained in:
A1300399510 2023-08-02 11:40:14 +08:00
parent 378d6da880
commit 8d87f67b99
2 changed files with 7 additions and 6 deletions

View File

@ -21,7 +21,7 @@
</div>
<div class="flex1 list scrollbar" @scroll="handleScroll">
<div class="empty-box" v-if="false">
<div class="empty-box" v-if="list.length == 0 && !state">
<empty-duck></empty-duck>
</div>
<template v-for="(item, index) in list" :key="index">
@ -147,11 +147,11 @@ let show = ref(false) //是否展示
let qrcode = ref("") //
let issubscribe = ref(0) //
let list = ref([]) //
let state = false //
let state = ref(false) //
let page = 1 //
const init = () => {
if (page == 0 || state) return
state = true
if (page == 0 || state.value) return
state.value = true
proxy.$post("/tenement/pc/api/user/messageList", {
page
}).then((res) => {
@ -168,12 +168,12 @@ const init = () => {
}).catch((err) => {
emit('close')
}).finally(() => {
state = false
state.value = false
})
}
const handleScroll = (event) => {
if (page == 0 || state) return
if (page == 0 || state.value) return
const scrollContainer = event.target; //
const scrollHeight = scrollContainer.scrollHeight; //
const scrollTop = scrollContainer.scrollTop; //

View File

@ -301,6 +301,7 @@ const handleDelete = (index, status) => {
if (status == 0) stat.value['draft']--
else if (status == 1) stat.value['listing']--
else stat.value['offshelf']--
count.value['publish'] --
publishData.value['list'].splice(index, 1)
nextTick(() => {
masonryInstancepublish.reloadItems();