websocket优化

This commit is contained in:
kron
2025-06-22 02:39:03 +08:00
parent 322f23efb4
commit d075844cb0
6 changed files with 50 additions and 22 deletions

View File

@@ -13,6 +13,9 @@ function request(method, url, data = {}) {
success: (res) => {
if (res.data.code === 0) resolve(res.data.data);
else {
if (res.data.message.indexOf("登录身份已失效") !== -1) {
uni.removeStorageSync("token");
}
uni.showToast({
title: res.data.message,
icon: "none",