[FIX] 修復機台日誌面板 ApexCharts 未定義錯誤
1. 修改 resources/views/admin/machines/index.blade.php,將 @push('scripts') 更改為 @section('scripts')。
2. 確保 ApexCharts 函式庫可以正確被 layouts/admin.blade.php 的 @yield('scripts') 載入,解決 Uncaught ReferenceError 問題。
This commit is contained in:
parent
a16b0363a8
commit
2f455cbd45
@ -1319,6 +1319,6 @@
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
@section('scripts')
|
||||
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
|
||||
@endpush
|
||||
@endsection
|
||||
Loading…
Reference in New Issue
Block a user