优化返回页面
This commit is contained in:
@@ -24,15 +24,17 @@ function request(urldata) {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
this.$global.lastPage = common_vendor.index.page.route;
|
||||
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
|
||||
common_vendor.index.reLaunch({ url: "/pages/UserInformation/UserInformation" });
|
||||
}
|
||||
} else {
|
||||
this.$global.lastPage = common_vendor.index.page.route;
|
||||
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
|
||||
common_vendor.index.navigateTo({ url: "/pages/login/login" });
|
||||
}
|
||||
},
|
||||
fail: function(res) {
|
||||
common_vendor.index.setStorageSync("lastPage", getCurrentPages()[getCurrentPages().length - 1].route);
|
||||
common_vendor.index.navigateTo({ url: "/pages/login/login" });
|
||||
reject(res);
|
||||
}
|
||||
});
|
||||
@@ -45,7 +47,7 @@ function request(urldata) {
|
||||
method,
|
||||
header,
|
||||
success: function(res) {
|
||||
common_vendor.index.__f__("log", "at components/request.js:48", "请求成功2", res);
|
||||
common_vendor.index.__f__("log", "at components/request.js:50", "请求成功2", res);
|
||||
resolve(res.data);
|
||||
},
|
||||
fail: function(res) {
|
||||
|
||||
Reference in New Issue
Block a user