细节调整
This commit is contained in:
@@ -16,6 +16,10 @@ function request(method, url, data = {}) {
|
||||
if (res.data.message.indexOf("登录身份已失效") !== -1) {
|
||||
uni.removeStorageSync("token");
|
||||
}
|
||||
if (url.indexOf("/user/room") !== -1 && method === "GET") {
|
||||
resolve({});
|
||||
return;
|
||||
}
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
icon: "none",
|
||||
|
||||
Reference in New Issue
Block a user