fix
This commit is contained in:
parent
4367fc54bf
commit
d29f4489de
2 changed files with 2 additions and 22 deletions
22
resources/assets/js/bootstrap.js
vendored
22
resources/assets/js/bootstrap.js
vendored
|
@ -19,28 +19,6 @@ jQuery.fn.uitooltip = jQuery.fn.tooltip;
|
||||||
*/
|
*/
|
||||||
require('bootstrap-less');
|
require('bootstrap-less');
|
||||||
|
|
||||||
/**
|
|
||||||
* Vue is a modern JavaScript library for building interactive web interfaces
|
|
||||||
* using reactive data binding and reusable components. Vue's API is clean
|
|
||||||
* and simple, leaving you to focus on building your next great project.
|
|
||||||
*/
|
|
||||||
|
|
||||||
window.Vue = require('vue').default;
|
|
||||||
window.eventHub = new Vue();
|
|
||||||
require('vue-resource');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* We'll register a HTTP interceptor to attach the "CSRF" header to each of
|
|
||||||
* the outgoing requests issued by this application. The CSRF middleware
|
|
||||||
* included with Laravel will automatically verify the header's value.
|
|
||||||
*/
|
|
||||||
|
|
||||||
Vue.http.interceptors.push(function (request, next) {
|
|
||||||
request.headers.set('X-CSRF-TOKEN', Laravel.csrfToken);
|
|
||||||
|
|
||||||
next();
|
|
||||||
});
|
|
||||||
|
|
||||||
// require('admin-lte');
|
// require('admin-lte');
|
||||||
|
|
||||||
// require('chart.js');
|
// require('chart.js');
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
// window.jQuery = jQuery
|
// window.jQuery = jQuery
|
||||||
// window.$ = jQuery
|
// window.$ = jQuery
|
||||||
|
|
||||||
|
require('./bootstrap');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module containing core application logic.
|
* Module containing core application logic.
|
||||||
* @param {jQuery} $ Insulated jQuery object
|
* @param {jQuery} $ Insulated jQuery object
|
||||||
|
|
Loading…
Add table
Reference in a new issue