pages/index/mine.vue
@@ -26,7 +26,8 @@ </template> <script> import { getUserInfo } from "@/utils/auth.js"; import WebSocketServices from "../../utils/WebSocketServices"; import { getUserInfo } from "@/utils/auth.js"; import { CommonUtils } from '@/utils/common' @@ -99,6 +100,10 @@ success: function (res) { if (res.confirm) { console.log('用户点击确定'); // 断开Socket连接 // WebSocketServices.closeSocket(); // 销毁 userInfo 缓存 // uni.removeStorageSync("userinfo") uni.reLaunch({ url:'/pages/index/login' })