eight
2024-08-20 1f4db481c48e6beb5c787f126576e63363b10a13
src/views/ecg/room/RoomLoginSelect.vue
@@ -16,10 +16,14 @@
import {useUserStore} from "@/store/modules/user";
import {CACHE_KEY, useCache} from "@/hooks/web/useCache";
import {ElMessage} from "element-plus";
const { currentRoute, push } = useRouter()
import {isStringEmpty}  from "@/utils/stringUtil"
const {  push } = useRouter()
const { wsCache } = useCache()
defineOptions({ name: 'RoomLoginSelect' })
const route = useRoute();
const userStore = useUserStore()
@@ -52,7 +56,10 @@
  }
  userStore.setRoomInfoAction(curSel.value)
  push({ path: "/"})
  if (isStringEmpty(route.redirectedFrom?.fullPath))
    push({ path: "/"})
  else
    push({ path: route.redirectedFrom?.fullPath})
}
const test = () => {