|  |  |  | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | mounted() { | 
|---|
|  |  |  | this.returs(); | 
|---|
|  |  |  | // this.returs(); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | async returs() { | 
|---|
|  |  |  | await listSystemmessageCount() | 
|---|
|  |  |  | .then((res) => { | 
|---|
|  |  |  | this.badgeVal = res.data; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (this.badgeVal > 0) { | 
|---|
|  |  |  | this.isBadgeHidden = false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .catch((error) => {}); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | //     async returs() { | 
|---|
|  |  |  | //       await listSystemmessageCount() | 
|---|
|  |  |  | //         .then((res) => { | 
|---|
|  |  |  | //           this.badgeVal = res.data; | 
|---|
|  |  |  | // console.log('跑'); | 
|---|
|  |  |  | //           if (this.badgeVal > 0) { | 
|---|
|  |  |  | //             this.isBadgeHidden = false; | 
|---|
|  |  |  | //           } | 
|---|
|  |  |  | //         }) | 
|---|
|  |  |  | //         .catch((error) => {}); | 
|---|
|  |  |  | //     }, | 
|---|
|  |  |  | clickMessage() { | 
|---|
|  |  |  | this.$router.push({ | 
|---|
|  |  |  | path: "/message", | 
|---|