소스 검색

if添加括号

Myles 1 년 전
부모
커밋
c98a14e2ac
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/views/workflow/processDefinition/index.vue

+ 2 - 1
src/views/workflow/processDefinition/index.vue

@@ -466,8 +466,9 @@ const reset = () => {
  */
  */
 const handleAdd = async () => {
 const handleAdd = async () => {
   reset();
   reset();
-  if (queryParams.value.category != '')
+  if (queryParams.value.category != '') {
     form.value.category = `${queryParams.value.category}`
     form.value.category = `${queryParams.value.category}`
+  }
   modelDialog.visible = true;
   modelDialog.visible = true;
   modelDialog.title = '新增流程';
   modelDialog.title = '新增流程';
 };
 };