Browse Source

修复详情数据未赋值的bug

DESKTOP-SVI9JE1\muzen 2 năm trước cách đây
mục cha
commit
96767fb310
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/views/operation/recommend/detail.vue

+ 2 - 0
src/views/operation/recommend/detail.vue

@@ -306,6 +306,8 @@ export default {
     getDetail() {
       detail(this.$route.query.threeId).then(res => {
         if (res.code === 0 && res.data.list.length > 0) {
+          this.form = JSON.parse(JSON.stringify(res.data))
+          this.form.list = []
           // 将详情数据遍历
           res.data.list.map((i, index) => {
             let obj = {}