Fixed baseUrl is undefined error

I literally cannot figure out how this ever worked before.
This commit is contained in:
snipe 2019-05-23 16:56:22 -07:00
parent 12ec2d1f7a
commit f6ef139111
5 changed files with 4 additions and 3 deletions

Binary file not shown.

BIN
public/js/dist/all.js vendored

Binary file not shown.

View file

@ -8,7 +8,7 @@
"/css/app.css.map": "/css/app.css.map?id=96b5c985e860716e6a16",
"/css/overrides.css.map": "/css/overrides.css.map?id=f7ce9ca49027594ac402",
"/css/dist/all.css": "/css/dist/all.css?id=98db4e9b7650453c8b00",
"/js/dist/all.js": "/js/dist/all.js?id=269c4bb386c5ae0dcce4",
"/js/dist/all.js": "/js/dist/all.js?id=9e32b32efc79b270c9a8",
"/css/build/all.css": "/css/build/all.css?id=98db4e9b7650453c8b00",
"/js/build/all.js": "/js/build/all.js?id=269c4bb386c5ae0dcce4"
"/js/build/all.js": "/js/build/all.js?id=9e32b32efc79b270c9a8"
}

View file

@ -73,7 +73,7 @@ var pieOptions = {
//- END PIE CHART -
//-----------------
var baseUrl = $('meta[name="baseUrl"]').attr('content');
(function($, settings) {
var Components = {};

View file

@ -25,6 +25,7 @@
<link rel="shortcut icon" type="image/ico" href="{{ url(asset('favicon.ico')) }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="baseUrl" content="{{ config('app.url') }}/">
<script nonce="{{ csrf_token() }}">
window.Laravel = { csrfToken: '{{ csrf_token() }}' };