|
@@ -217,7 +217,7 @@ export default {
|
|
|
this.getInit();
|
|
this.getInit();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- getInit() {
|
|
|
|
|
|
|
+ getInit(refresh) {
|
|
|
if (this.isLogin) {
|
|
if (this.isLogin) {
|
|
|
this.$http
|
|
this.$http
|
|
|
.post(
|
|
.post(
|
|
@@ -249,7 +249,7 @@ export default {
|
|
|
StatusBar.styleLightContent();
|
|
StatusBar.styleLightContent();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- return this.$store.dispatch('getUserInfo');
|
|
|
|
|
|
|
+ return this.$store.dispatch('getUserInfo', refresh);
|
|
|
},
|
|
},
|
|
|
copy() {
|
|
copy() {
|
|
|
this.$copyText(this.userInfo.id).then(
|
|
this.$copyText(this.userInfo.id).then(
|
|
@@ -315,7 +315,7 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
onRefresh() {
|
|
onRefresh() {
|
|
|
- return this.getInit()
|
|
|
|
|
|
|
+ return this.getInit(true)
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|
|
|
})
|
|
})
|