增加系统信息轮询
This commit is contained in:
@@ -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] })
|
||||
|
||||
@@ -146,8 +146,11 @@ export default {
|
||||
],
|
||||
};
|
||||
},
|
||||
created() {
|
||||
created() {
|
||||
this.reload();
|
||||
setInterval(() => {
|
||||
this.reload();
|
||||
}, 1000*10);
|
||||
},
|
||||
methods: {
|
||||
async reload() {
|
||||
|
||||
Reference in New Issue
Block a user