增加系统信息轮询

This commit is contained in:
pixel
2020-10-09 16:15:45 +08:00
parent 63edd741ba
commit 130910308d
3 changed files with 12 additions and 8 deletions
@@ -54,7 +54,7 @@ export default {
apis &&
apis.map(item => {
item.onlyId = "p:"+item.path+"m:"+item.method
if (apiObj.hasOwnProperty(item.apiGroup)) {
if (Object.prototype.hasOwnProperty.call(apiObj,item.apiGroup)) {
apiObj[item.apiGroup].push(item)
} else {
Object.assign(apiObj, { [item.apiGroup]: [item] })
+4 -1
View File
@@ -146,8 +146,11 @@ export default {
],
};
},
created() {
created() {
this.reload();
setInterval(() => {
this.reload();
}, 1000*10);
},
methods: {
async reload() {