fix vuejs

This commit is contained in:
Vincent BRIDIER 2022-04-29 16:05:26 +02:00
parent dd7799ceda
commit 40db69b4c0
No known key found for this signature in database
GPG key ID: 8571BFA20420D512
2 changed files with 12 additions and 4 deletions

8
resources/js/app.js vendored
View file

@ -6,7 +6,13 @@
require('./bootstrap');
window.Vue = require('vue');
import Vue from 'vue';
window.Vue = Vue;
if (window.vueDebug) {
Vue.config.devtools = true;
Vue.config.debug = true;
}
/**
* The following block of code may be used to automatically register your

View file

@ -9,9 +9,6 @@
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}" defer></script>
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
@ -84,6 +81,11 @@
<main class="py-4">
@yield('content')
</main>
<script>
let vueDebug = {{ config('app.debug') == 1 ? 'true' : 'false' }};
</script>
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}" defer></script>
</div>
</body>
</html>