File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed
src/inertiajs-stubs/resources/js Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 1919 <inertia-link class =" nav-link" href =" /contact" >Contact</inertia-link >
2020 </li >
2121 </ul >
22-
22+
2323 </div >
2424 </div >
2525 </nav >
3737 </main >
3838 </div >
3939</template >
40-
41- <script >
42- import { InertiaLink } from ' inertia-vue'
43-
44- export default {
45- components: {
46- InertiaLink,
47- },
48- }
49- </script >
Original file line number Diff line number Diff line change @@ -3,14 +3,16 @@ require('./bootstrap')
33import Inertia from 'inertia-vue'
44import Vue from 'vue'
55
6+ Vue . use ( Inertia )
7+
68let app = document . getElementById ( 'app' )
79
810new Vue ( {
911 render : h => h ( Inertia , {
1012 props : {
1113 initialPage : JSON . parse ( app . dataset . page ) ,
12- resolveComponent : ( component ) => {
13- return import ( `@/Pages/${ component } ` ) . then ( module => module . default )
14+ resolveComponent : ( name ) => {
15+ return import ( `@/Pages/${ name } ` ) . then ( module => module . default )
1416 } ,
1517 } ,
1618 } ) ,
You can’t perform that action at this time.
0 commit comments