Explorar o código

修复详情数据未赋值的bug

DESKTOP-SVI9JE1\muzen %!s(int64=2) %!d(string=hai) anos
pai
achega
96767fb310
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 = {}