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.
iot/projects/WebApp/wwwroot/pages/iot/nodes.js

33 lines
1.1 KiB

function pages_iot_nodes() {
return Vue.component(arguments.callee.toString(), function (resolve, reject) {
axios.get("/pages/iot/nodes.html").then(function (response) {
resolve({
template: response.data,
data() {
return {
name: '智慧教室',
url: '/IoTCenter/api/v1/node/getNodes'
};
},
mounted: function () {
axios.post(this.url)
.then(function (response) {
store.commit('setNodes', response.data);
})
.catch(function (error) {
})
.finally(function () {
});
},
methods: {
},
computed: {
nodes: function () {
return store.state.nodes;
}
},
})
});
});
}