소스 검색

新增换热站关闭之后清除地图关键字

picasso 3 년 전
부모
커밋
4b02f2da14
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/heatStation/heatStation/component/edit.vue

+ 1 - 1
src/views/heatStation/heatStation/component/edit.vue

@@ -164,11 +164,11 @@ export default defineComponent({
 		// 关闭弹窗
 		const closeDialog = () => {
 			state.dialogVisible = false
+			state.keyword = ''
 		}
 		// 取消
 		const onCancel = () => {
 			closeDialog()
-			state.keyword = ''
 		}
 		const getDetail = () => {
 			api.heatStation.detail(state.ruleForm.id)