细节完善
This commit is contained in:
@@ -15,10 +15,6 @@ export const checkConnection = () => {
|
||||
fail: () => {
|
||||
const token = uni.getStorageSync("token");
|
||||
if (!token) return;
|
||||
uni.showToast({
|
||||
title: "连接中...",
|
||||
icon: "none",
|
||||
});
|
||||
// 如果发送失败,说明连接已断开,需要重新连接
|
||||
websocket.createWebSocket(token, (content) => {
|
||||
uni.$emit("socket-inbox", content);
|
||||
|
||||
Reference in New Issue
Block a user