App embeds h5 to get data that cannot be assigned.

getData(){
    let customer_id = localStorage.getItem("customer_id")
            let param = new URLSearchParams();
            param.append("customer_id", customer_id);
            this.$http({
                method: "post",
                url: "/Cases/list.do",
                data: param
            })
            .then(({data})=>{
                data.data.medicationCasesVoList.forEach((e)=>{
                        if(e.medicationName !== ""){
                            this.medicationCasesVoList.medicationName = e.medicationName;
                        }
                        if(e.medicationTime !== ""){
                            this.medicationCasesVoList.medicationTime = e.medicationTime;
                            // 
                            this.changeTime1()
                        }
                    })
}
app

clipboard.png

Apr.12,2021

does not understand what you are going to do, but the hint means that medicationCasesVoList does not exist in data


this you need to determine whether localStrong, is supported in app and then solve the following problems


your writing is too new, the js of the mobile browser does not support it.

Menu