You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
960 B
29 lines
960 B
function IoTCenter_products() {
|
|
return Vue.component('IoTCenter_products', function (resolve, reject) {
|
|
axios.get("/IoTCenter/products.html").then(function (response) {
|
|
resolve({
|
|
template: response.data,
|
|
data() {
|
|
return {
|
|
model: null
|
|
};
|
|
},
|
|
mounted: function () {
|
|
var url = '/IoTCenter/api/v1/product/getProducts';
|
|
var component = this;
|
|
axios.post(url)
|
|
.then(function (response) {
|
|
component.model = response.data;
|
|
})
|
|
.catch(function (error) {
|
|
})
|
|
.finally(function () {
|
|
|
|
});
|
|
},
|
|
methods: {
|
|
}
|
|
})
|
|
});
|
|
});
|
|
} |