vue introduces an object through import, assigns the object to data, and then asynchronously modifies the value of the property of this object in data. Vue cannot listen
.this object has the following format:
import { staticObj } from "./a.js"
data() {
return {
staticObj: staticObj
}
}
async created() {
const list = await api.getList()
this.staticObj[0].filters = list // vuefilters
}