Merge branch 'main' of https://git.opencomputing.cn/yumoqing/kboss
This commit is contained in:
commit
c3d61c2571
@ -130,7 +130,7 @@ export default Vue.extend({
|
||||
viewList: [],
|
||||
navList: [],
|
||||
// 移除 data 中的 mybalance 定义
|
||||
// mybalance: 0, // ❌ 删除这一行
|
||||
mybalance: 0,
|
||||
todoList: [
|
||||
{ name: '待支付', count: 0 },
|
||||
{ name: '待续费', count: 0 },
|
||||
@ -144,7 +144,7 @@ export default Vue.extend({
|
||||
},
|
||||
created() {
|
||||
// 移除 initMybalance 调用,因为现在使用 computed 的 mybalance
|
||||
// this.initMybalance(); // ❌ 删除这一行
|
||||
this.initMybalance(); // ❌ 删除这一行
|
||||
this.getUnreadMsgCount();
|
||||
this.fetchTodoCount();
|
||||
},
|
||||
@ -188,12 +188,12 @@ export default Vue.extend({
|
||||
return this.navIcons[iconIndex];
|
||||
},
|
||||
// 移除 initMybalance 方法,因为现在使用 computed 的 mybalance
|
||||
// async initMybalance() { // ❌ 删除这个方法
|
||||
// const res = await editReachargelogAPI()
|
||||
// if (res.status) {
|
||||
// this.mybalance = res.data
|
||||
// }
|
||||
// },
|
||||
async initMybalance() { // ❌ 删除这个方法
|
||||
const res = await editReachargelogAPI()
|
||||
if (res.status) {
|
||||
this.mybalance = res.data
|
||||
}
|
||||
},
|
||||
async getUnreadMsgCount() {
|
||||
try {
|
||||
const res = await getUnreadmsgAPI();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user