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

@@ -78,7 +78,7 @@ import {editTunnel, getTunnelDetail} from "@/api/tunnelManage";
import {ElLoading, ElMessage} from "element-plus";
import {initSceneData} from "@/api/tunnelScene";
import TunnelTitle from "@/components/tunnelTitle/index.vue";
import { debounce } from 'lodash'
const router = useRouter();
const tunnelId = reactive(router.currentRoute.value.params.tunnelId);
const userId = reactive(router.currentRoute.value.params.userId);
@@ -144,9 +144,9 @@ const getTunnelInfo = () => {
});
})
}
const handleSave = () => {
const handleSave =debounce(() => {
getTunnelInfo()
};
},1000)
</script>
<style lang="scss" scoped>
:deep(.el-form-item__content) {