ESLint:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第136行: 第136行:
   }
   }
}</syntaxhighlight>
}</syntaxhighlight>
*: 更改为如下
*: <syntaxhighlight lang="javascript">
computed: {
  renderDataList: {
    get() {
      const HSF = this.list
      if (!HSF[0].filters) {
        return []
      }
      return {
        searchFilters: HSF[0].filters
      }
    },
    set() {
      const param = this.renderDataList.searchFilters
      this.isCountry = param[0].key
      this.isDepartment = param[1].key
      this.isCountryValue = param[0].options[0].value
      this.isDepartmentValue = param[1].options[0].value
    }
  }
},</syntaxhighlight>
* Parsing error: setter must have exactly one formal parameter
* Parsing error: setter must have exactly one formal parameter


== 雁阵规则 ==
== 雁阵规则 ==