fix : 修复确认按钮防抖
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user