fix : 修改防抖等待时间

This commit is contained in:
2024-03-25 22:45:27 +08:00
parent 4c74715efd
commit 054a731435
7 changed files with 12 additions and 12 deletions

View File

@@ -16,7 +16,7 @@ steps:
- export NODE_MODULES_PATH=`pwd`/node_modules - export NODE_MODULES_PATH=`pwd`/node_modules
# - npm config set registry https://registry.npm.taobao.org # - npm config set registry https://registry.npm.taobao.org
- set NODE_OPTIONS=--openssl-legacy-provider - set NODE_OPTIONS=--openssl-legacy-provider
- npm install # - npm install
- npm run build - npm run build
- echo $NODE_MODULES_PATH - echo $NODE_MODULES_PATH
- cp -r dist /app/build/$DRONE_REPO_NAME - cp -r dist /app/build/$DRONE_REPO_NAME

View File

@@ -423,7 +423,7 @@ const editEquip = debounce(() => {
ElMessage.error(res.msg) ElMessage.error(res.msg)
} }
}) })
}, 1000) }, 100)
const handleChangeMenu = (e) => { const handleChangeMenu = (e) => {
changeIndex.value = e changeIndex.value = e

View File

@@ -146,7 +146,7 @@ const getTunnelInfo = () => {
} }
const handleSave =debounce(() => { const handleSave =debounce(() => {
getTunnelInfo() getTunnelInfo()
},1000) },100)
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
:deep(.el-form-item__content) { :deep(.el-form-item__content) {

View File

@@ -320,7 +320,7 @@ const handleSubmit =debounce((instance) => {
}); });
} }
}) })
},1000) },100)
const handleChooseAll = debounce(() => { const handleChooseAll = debounce(() => {
siteList.value.map(item => { siteList.value.map(item => {
item.checked = !item.checked item.checked = !item.checked
@@ -334,7 +334,7 @@ const handleChooseAll = debounce(() => {
}) })
} }
}) })
},1000) },100)
const handleMoreDelete =debounce(() => { const handleMoreDelete =debounce(() => {
if (siteIds.value.length === 0) { if (siteIds.value.length === 0) {
ElMessage.warning('请先选择站点进行删除') ElMessage.warning('请先选择站点进行删除')
@@ -372,7 +372,7 @@ const handleMoreDelete =debounce(() => {
}) })
} }
} }
},1000) },100)
const firstPage = () => { const firstPage = () => {
pageInfo.pageNum = 1 pageInfo.pageNum = 1
getList() getList()

View File

@@ -394,7 +394,7 @@ const handleSubmit = debounce((instance) => {
} }
}) })
}) })
},1000) },100)
//预览隧道 //预览隧道
const handlePreview = (id) => { const handlePreview = (id) => {
console.log('预览') console.log('预览')
@@ -431,7 +431,7 @@ const handleChooseAll = debounce(() => {
}) })
} }
}) })
},1000) },100)
const handleEditDevice = (tunnelId) => { const handleEditDevice = (tunnelId) => {
if (type === 'bySite') { if (type === 'bySite') {
router.push('/device/' + tunnelId + '/bySite/' + userId) router.push('/device/' + tunnelId + '/bySite/' + userId)
@@ -505,7 +505,7 @@ const handleMoreDelete = debounce(() => {
}) })
}) })
} }
},1000) },100)
</script> </script>

View File

@@ -537,7 +537,7 @@ const handleChangeSite = debounce((item) => {
nextTick(() => { nextTick(() => {
showTunnelTitle.value = true showTunnelTitle.value = true
}); });
},1000) },100)
const closeLeft = () => { const closeLeft = () => {
drawerLeft.value = !drawerLeft.value; drawerLeft.value = !drawerLeft.value;
}; };

View File

@@ -252,7 +252,7 @@ const handleDelete = debounce(() => {
}) })
}) })
} }
}, 1000) }, 100)
const reset = () => { const reset = () => {
form.value = { form.value = {
password: '', password: '',
@@ -346,7 +346,7 @@ const handleSubmit = debounce((formInstance) => {
}) })
} }
}) })
}, 1000) }, 100)
const handleSelect = async (selection, row) => { const handleSelect = async (selection, row) => {
if (selection.length !== 0) { if (selection.length !== 0) {
// disabled.value = false // disabled.value = false