提交修改

This commit is contained in:
RenCheng 2025-05-28 22:11:05 +08:00
parent 9e6571b47d
commit b885687b57

View File

@ -124,8 +124,8 @@ export default {
}, },
websocketonmessage: function (e) { websocketonmessage: function (e) {
console.log(e) console.log(e)
if (e.length > 0) { if (e.data.length > 0) {
this.contentList.unshift(e); this.contentList.unshift(e.data);
} }
this.getTables() this.getTables()
}, },
@ -145,7 +145,6 @@ export default {
getAction("/online/getOnlineLinkCountData",{}).then((res)=>{ getAction("/online/getOnlineLinkCountData",{}).then((res)=>{
if(res.success){ if(res.success){
Object.keys(res.result).forEach(function(key){ Object.keys(res.result).forEach(function(key){
console.log(res.result[key])
t.totalNumberCataloguesData.push([key, parseInt(res.result[key])]) t.totalNumberCataloguesData.push([key, parseInt(res.result[key])])
}); });
t.gettotalNumberCatalogues(); t.gettotalNumberCatalogues();