猿问

Eslint报错表达式左边无效但是这个对象我已经声明过了?

  <script>
        let tempParamsPackge = {              "sex-value": '',              "ageLower": '',              "ageUper": '',              "transfer-value": '',              "department-value": '',              "beg-timestamp": '',              "end-timestamp": '',              "zd": '',              "hbz": '',              "assay": '',              "other": '',              "page": 1,              "range": ''
            }        export defult{
            data(){
                tempParamsPackge,
            },
             beforeRouteUpdate(to, from, next) {                 this.tempParamsPackge.sex-value = to.query.sex-value;//这行报错左边表达式无效  
            }
        } 
    </script>


智慧大石
浏览 732回答 1
1回答
随时随地看视频慕课网APP

相关分类

Vue.js
我要回答