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