This commit is contained in:
pengxiaolong
2025-05-19 18:34:04 +08:00
parent e05d72fccf
commit ff546bd9a9
31 changed files with 174 additions and 195 deletions

View File

@@ -2,7 +2,7 @@
const common_vendor = require("../common/vendor.js");
function request(urldata) {
const { url, data, method, header, userInfo } = urldata;
const baseUrl = "http://192.168.0.218:8086" + url;
const baseUrl = "http://192.168.0.218:8086/" + url;
common_vendor.index.__f__("log", "at components/request.js:6", "``````````````````````````````````", userInfo);
if (userInfo) {
common_vendor.index.getStorage({
@@ -25,9 +25,11 @@ function request(urldata) {
});
});
} else {
this.$global.lastPage = common_vendor.index.page.route;
common_vendor.index.reLaunch({ url: "/pages/UserInformation/UserInformation" });
}
} else {
this.$global.lastPage = common_vendor.index.page.route;
common_vendor.index.navigateTo({ url: "/pages/login/login" });
}
}