|
|
|
@ -43,12 +43,8 @@ export default {
|
|
|
|
|
const response = await getMessageCount();
|
|
|
|
|
if (response && response.code === 200) {
|
|
|
|
|
this.counts = response.data; // 将消息数量赋值给 counts
|
|
|
|
|
} else {
|
|
|
|
|
console.error('获取数据失败:', response);
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error('获取数据失败:', error);
|
|
|
|
|
}
|
|
|
|
|
} else { }
|
|
|
|
|
} catch (error) {}
|
|
|
|
|
},
|
|
|
|
|
// 获取数据
|
|
|
|
|
async getCountstwo() {
|
|
|
|
@ -56,16 +52,9 @@ export default {
|
|
|
|
|
const response = await getMessageCounttwo();
|
|
|
|
|
if (response && response.code === 200) {
|
|
|
|
|
this.countstwo = response.data; // 将消息数量赋值给 counts
|
|
|
|
|
} else {
|
|
|
|
|
console.error('获取数据失败:', response);
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error('获取数据失败:', error);
|
|
|
|
|
}
|
|
|
|
|
} else { }
|
|
|
|
|
} catch (error) { }
|
|
|
|
|
},
|
|
|
|
|
handleCommand(command) {
|
|
|
|
|
this.$message('点击了: ' + command)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|