I have defined a global variable Vue.prototype.url
in main.js. The value of this variable is returned in the background. How can I monitor the change of this value in the vue component? Cannot listen using watch
watch: {
"url"(newVal,oldVal) {
console.log(newVal,oldVal)
}
}