perf: 弹框关闭时不进行查询

This commit is contained in:
2023-12-14 18:06:20 +08:00
parent a2be25cb40
commit f8e1a419ad

View File

@ -2,7 +2,7 @@
* @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-08-14 11:07:15
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-12-14 16:08:04
* @LastEditTime: 2023-12-14 18:05:02
* @FilePath: \vue3\packages\select-transfer-modal\index.vue
* @Description:
*
@ -247,7 +247,10 @@ function transferValueInit() {
transferValueInit()
watch(() => properties.defaultParams, handleQuery, { deep: true })
watch(() => properties.defaultParams, () => {
if (showDialog.value)
handleQuery()
}, { deep: true })
watch(() => properties.value, transferValueInit)
watch(() => properties.show, (show) => {
showDialog.value = show