优化返回页面
This commit is contained in:
@@ -24,15 +24,17 @@ export default function request(urldata) {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.$global.lastPage = uni.page.route;
|
||||
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
|
||||
uni.reLaunch({ url: "/pages/UserInformation/UserInformation" })
|
||||
}
|
||||
} else {
|
||||
this.$global.lastPage = uni.page.route;
|
||||
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
|
||||
uni.navigateTo({ url: '/pages/login/login' })
|
||||
}
|
||||
},
|
||||
fail: function (res) {
|
||||
uni.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
|
||||
uni.navigateTo({ url: '/pages/login/login' })
|
||||
reject(res);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user