소스 검색

添加通知编辑名称判断

zizhong.wang 4 년 전
부모
커밋
41809c1695
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/notification/editPage/editPage.vue

+ 1 - 1
src/views/notification/editPage/editPage.vue

@@ -263,7 +263,7 @@ export default {
         this.tipText = "资料名不能为空";
         this.tipFlag = true;
         return;
-      } else if (include >= 0) {
+      } else if (include >= 0 && !this.noticeId) {
         this.tipText = "资料名称不能重复,请重新输入";
         this.tipFlag = true;
         return;