feat: 注释多余代码
This commit is contained in:
parent
8efffa4b94
commit
50356a4546
|
@ -89,27 +89,27 @@ export default {
|
|||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.getUserInfo();
|
||||
const that = this;
|
||||
uni.getSystemInfo({
|
||||
success: function (res) {
|
||||
console.log("res", res);
|
||||
that.version = res.appVersion;
|
||||
},
|
||||
});
|
||||
// this.getUserInfo();
|
||||
// const that = this;
|
||||
// uni.getSystemInfo({
|
||||
// success: function (res) {
|
||||
// console.log("res", res);
|
||||
// that.version = res.appVersion;
|
||||
// },
|
||||
// });
|
||||
},
|
||||
onShow() {
|
||||
uni.$on("refresh", (e) => {
|
||||
this.getUserInfo();
|
||||
uni.$off("refresh");
|
||||
});
|
||||
// uni.$on("refresh", (e) => {
|
||||
// this.getUserInfo();
|
||||
// uni.$off("refresh");
|
||||
// });
|
||||
},
|
||||
|
||||
// 下拉刷新
|
||||
onPullDownRefresh() {
|
||||
//console.log('refresh');
|
||||
this.getUserInfo();
|
||||
uni.stopPullDownRefresh(); //停止刷新
|
||||
// this.getUserInfo();
|
||||
// uni.stopPullDownRefresh(); //停止刷新
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue