Procházet zdrojové kódy

修复当页面存在多个select表单时无法使用联动功能问题

jqh před 4 roky
rodič
revize
60e29fe6ac
2 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 3 2
      resources/views/scripts/select.blade.php
  2. 1 1
      src/Admin.php

+ 3 - 2
resources/views/scripts/select.blade.php

@@ -33,12 +33,13 @@
         }
     });
     @endif
-@endsection
+@overwrite
 </script>
 
 @section('admin.select-load')
     @if(isset($load))
     <script once>
+        console.log(123213)
         var selector = '{!! $selector !!}';
 
         $(document).off('change', selector);
@@ -62,7 +63,7 @@
         $(selector).trigger('change');
     </script>
     @endif
-@endsection
+@overwrite
 
 @section('admin.select-lang')
 @if (config('app.locale') !== 'en')

+ 1 - 1
src/Admin.php

@@ -28,7 +28,7 @@ class Admin
     use HasAssets;
     use HasHtml;
 
-    const VERSION = '2.0.6-beta';
+    const VERSION = '2.0.7-beta';
 
     const SECTION = [
         // 往 <head> 标签内输入内容