Compare commits
No commits in common. "668da1b96adfe27c62708c19006672f99a7c7ac4" and "3fa768f35a6c85aaa0268b7f3a7ae471f713731e" have entirely different histories.
668da1b96a
...
3fa768f35a
@ -130,7 +130,7 @@ export default Vue.extend({
|
|||||||
viewList: [],
|
viewList: [],
|
||||||
navList: [],
|
navList: [],
|
||||||
// 移除 data 中的 mybalance 定义
|
// 移除 data 中的 mybalance 定义
|
||||||
mybalance: 0,
|
// mybalance: 0, // ❌ 删除这一行
|
||||||
todoList: [
|
todoList: [
|
||||||
{ name: '待支付', count: 0 },
|
{ name: '待支付', count: 0 },
|
||||||
{ name: '待续费', count: 0 },
|
{ name: '待续费', count: 0 },
|
||||||
@ -144,7 +144,7 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// 移除 initMybalance 调用,因为现在使用 computed 的 mybalance
|
// 移除 initMybalance 调用,因为现在使用 computed 的 mybalance
|
||||||
this.initMybalance(); // ❌ 删除这一行
|
// this.initMybalance(); // ❌ 删除这一行
|
||||||
this.getUnreadMsgCount();
|
this.getUnreadMsgCount();
|
||||||
this.fetchTodoCount();
|
this.fetchTodoCount();
|
||||||
},
|
},
|
||||||
@ -188,12 +188,12 @@ export default Vue.extend({
|
|||||||
return this.navIcons[iconIndex];
|
return this.navIcons[iconIndex];
|
||||||
},
|
},
|
||||||
// 移除 initMybalance 方法,因为现在使用 computed 的 mybalance
|
// 移除 initMybalance 方法,因为现在使用 computed 的 mybalance
|
||||||
async initMybalance() { // ❌ 删除这个方法
|
// async initMybalance() { // ❌ 删除这个方法
|
||||||
const res = await editReachargelogAPI()
|
// const res = await editReachargelogAPI()
|
||||||
if (res.status) {
|
// if (res.status) {
|
||||||
this.mybalance = res.data
|
// this.mybalance = res.data
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
async getUnreadMsgCount() {
|
async getUnreadMsgCount() {
|
||||||
try {
|
try {
|
||||||
const res = await getUnreadmsgAPI();
|
const res = await getUnreadmsgAPI();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user