Преглед на файлове

fix: 防止重复添加用户时触发事件传播

caipin преди 1 месец
родител
ревизия
cd6baea72f
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      app/public/js/setting_manage.js

+ 5 - 0
app/public/js/setting_manage.js

@@ -634,6 +634,7 @@ $(document).ready(() => {
                 }
                 if (_.includes(saIdList, id)) {
                     toastr.error('该用户已存在列表中,无需重复添加');
+                    e.stopPropagation();
                     return;
                 }
 
@@ -675,6 +676,7 @@ $(document).ready(() => {
                 }
                 if (_.includes(saIdList, id)) {
                     toastr.error('该用户已存在列表中,无需重复添加');
+                    e.stopPropagation();
                     return;
                 }
 
@@ -696,6 +698,7 @@ $(document).ready(() => {
                 }
                 if (_.includes(saIdList, id)) {
                     toastr.error('该用户已存在列表中,无需重复添加');
+                    e.stopPropagation();
                     return;
                 }
 
@@ -716,6 +719,7 @@ $(document).ready(() => {
                 }
                 if (_.includes(saIdList, id)) {
                     toastr.error('该用户已存在列表中,无需重复添加');
+                    e.stopPropagation();
                     return;
                 }
 
@@ -734,6 +738,7 @@ $(document).ready(() => {
                 }
                 if (_.includes(saIdList, id)) {
                     toastr.error('该用户已存在列表中,无需重复添加');
+                    e.stopPropagation();
                     return;
                 }
                 const prop = {