mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-24 23:14:16 +00:00
fix $ is not a function bug
This commit is contained in:
@@ -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){
|
||||
|
||||
Vendored
+1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user