lizeyu 11 месяцев назад
Родитель
Сommit
f8627c5a0c
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      h5app/src/components/postSelectionLike.vue

+ 4 - 2
h5app/src/components/postSelectionLike.vue

@@ -103,8 +103,10 @@ export default defineComponent({
     }
 
     const onConfirm = () => {
-      resultInfo.text = searchParams.professionName;
-      context.emit("resultInfo", resultInfo);
+      if(searchParams.professionName){
+        resultInfo.text = searchParams.professionName;
+        context.emit("resultInfo", resultInfo);
+      }
       onOpen();
     }