fix : 修复确认按钮防抖

This commit is contained in:
2024-03-25 16:31:37 +08:00
parent ef3bd6a125
commit 1cde879d78
7 changed files with 62 additions and 35 deletions

View File

@@ -165,7 +165,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
import { getUserInfo } from "@/api/login";
import { initSceneData } from "@/api/tunnelScene";
import { getTunnelList } from "@/api/tunnelManage";
import { debounce, throttle } from 'lodash'
import { debounce } from 'lodash'
const authStore = useAuthStore();
const router = useRouter();
const previewId = reactive(router.currentRoute.value.params.tunnelId)
@@ -503,7 +503,7 @@ const changeTunnel = (e) => {
}
const manageSelect = (index) => {
socket.close()
if (index === '站点管理') {
if (currentUserId.value) {
router.push("/site/" + currentUserId.value + '/' + currentSiteId.value);
@@ -517,6 +517,7 @@ const manageSelect = (index) => {
router.push("/user/" + localStorage.getItem('currentSiteId'));
}
}
socket.close()
};
const handleChangeSite = debounce((item) => {
socket.close()