I'm having trouble with a Vue assignment. Here is my code:
new Vue({
el: "#alarmEchartBar",
data: {
regusterUrl: Ohttp + "historicalAlarmRecord/chart",
regDistrictUrl: Ohttp + "district",
regStreetUrl: Ohttp + "street/",
regCameraUrl: Ohttp + "camera/",
meger: false,
timeUnit: 1,
startTime: 0,
endTime: 0,
districtName: "全部",
streetName: "全部",
cameraName: "全部",
districtData: [],
streetData: [],
cameraData: [],
DID: [],
SID: [],
CID: [],
requestData: {
"dIds": this.DID,
"cIds": this.CID,
"sIds": this.SID,
"merge": this.meger,
"timeUnit": this.timeUnit,
"startTime": this.startTime,
"endTime": this.endTime,
},
}})
When I try to access the requestData value, it shows as undefined. Is there a way to successfully assign this value?