axios.get("__MODULE__/Point/getPointProduct", {
params: {
productno:app.pointproduct_no
}
}).then(function (response) {
app.thisProductNewPrice=response.data[0].NewPrice;
});
app.pointproduct_no
but why can the following code add a timer to execute
setInterval(function(){
axios.get("__MODULE__/Point/getPointProduct", {
params: {
productno:app.pointproduct_no
}
}).then(function (response) {
app.thisProductNewPrice=response.data[0].NewPrice;
});
},1000);