Vue/ts: array push error

this is a vue file. I have a markers, in my data data initialized to an empty array [].
but once I do a this.markers.push operation in my method, I get a type check error. It"s the same everywhere else. Even push other, push (1) also reported an error. I really don"t know what to do with an array of push. I think he didn"t declare a type error during initialization. But I really don"t know how vue"s data declares types.
ask for answers

clipboard.png
@

let that:any

clipboard.png

Mar.23,2022
The this in the

foreach function points to a non-vue instance. You can use that outside the function to transfer


pois.forEach (() = > {}, this)

Menu