|
@@ -22,6 +22,9 @@ export class MeComponent {
|
|
}
|
|
}
|
|
|
|
|
|
async ngOnInit() {
|
|
async ngOnInit() {
|
|
|
|
+ this.refresh()
|
|
|
|
+ }
|
|
|
|
+ async refresh(){
|
|
this.myAttentionList = await this.gteAttentionData()
|
|
this.myAttentionList = await this.gteAttentionData()
|
|
this.myScienceList = await this.getScienceData()
|
|
this.myScienceList = await this.getScienceData()
|
|
this.myRecommendList = await this.getRecommendDate()
|
|
this.myRecommendList = await this.getRecommendDate()
|
|
@@ -56,6 +59,7 @@ export class MeComponent {
|
|
async logout() {
|
|
async logout() {
|
|
await Parse.User.logOut()
|
|
await Parse.User.logOut()
|
|
this.currentUser = undefined
|
|
this.currentUser = undefined
|
|
|
|
+
|
|
let toast = await this.toastCtrl.create({
|
|
let toast = await this.toastCtrl.create({
|
|
message: "登出成功",
|
|
message: "登出成功",
|
|
position: "top",
|
|
position: "top",
|