a1300399510@qq.com 提交于 2023/04/03 -17:20:01

This commit is contained in:
2023-04-03 17:20:10 +08:00
parent 0b09358ccf
commit b7f562c7eb
3 changed files with 20 additions and 4 deletions

View File

@@ -20,6 +20,7 @@
</div>
</div>
</div>
</template>
@@ -31,9 +32,9 @@ export default {
allActive: 0,
list: [{}],
postCollectionState: false, // 收藏的请求的状态
}
},
methods: {
allClick(index) {
this.allActive = index
@@ -64,6 +65,9 @@ export default {
}).then(res => {
if (res.code != 200) return
this.list[this.allActive].data[k]['iscollection'] = 0
this.$Message({
})
this.$forceUpdate()
}).finally(() => {
this.postCollectionState = false