Skip to content

Commit 92ffc39

Browse files
authored
修复ad.vue中,点击编辑修改图片后马上点击编辑按钮导致无限渲染卡死页面的问题。在dev模式下不易发现仅有报错,部署到线上后可复现 (#543)
1 parent 47ea5c7 commit 92ffc39

File tree

1 file changed

+8
-7
lines changed
  • litemall-admin/src/views/promotion

1 file changed

+8
-7
lines changed

litemall-admin/src/views/promotion/ad.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,14 @@ export default {
265265
if (valid) {
266266
updateAd(this.dataForm)
267267
.then(() => {
268-
for (const v of this.list) {
269-
if (v.id === this.dataForm.id) {
270-
const index = this.list.indexOf(v)
271-
this.list.splice(index, 1, this.dataForm)
272-
break
273-
}
274-
}
268+
// for (const v of this.list) {
269+
// if (v.id === this.dataForm.id) {
270+
// const index = this.list.indexOf(v)
271+
// this.list.splice(index, 1, this.dataForm)
272+
// break
273+
// }
274+
// }
275+
this.getList()
275276
this.dialogFormVisible = false
276277
this.$notify.success({
277278
title: '成功',

0 commit comments

Comments
 (0)