fix $ is not a function bug

This commit is contained in:
omair saleh
2022-02-10 11:13:58 +08:00
parent 4c8d363e25
commit 9df9e5bd7c
2 changed files with 2 additions and 1 deletions
@@ -34,7 +34,7 @@
if(!success){return;}
let vm = this;
let mappedList = $.map(response.payload.data, function(value){
let mappedList = response.payload.data.map(function(value){
let preservedValue = value;
return {'id': !isNaN(value[vm.valueColumn]) ? parseInt(value[vm.valueColumn]) : value[vm.valueColumn],
'text': vm.labelColumn.map(function(label){
+1
View File
@@ -5,6 +5,7 @@
'baseUrl' => url('/'),
'routes' => collect(\Route::getRoutes())->mapWithKeys(function ($route) { return [$route->getName() => $route->uri()]; })
]) !!};
window.$ = window.jQuery = require('jquery');
</script>
<script src="{{ asset('js/vendor.js') }}" type="text/javascript"></script>
<script src="{{mix('vue/app.js')}}"></script>