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 19
19
<inertia-link class =" nav-link" href =" /contact" >Contact</inertia-link >
20
20
</li >
21
21
</ul >
22
-
22
+
23
23
</div >
24
24
</div >
25
25
</nav >
37
37
</main >
38
38
</div >
39
39
</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')
3
3
import Inertia from 'inertia-vue'
4
4
import Vue from 'vue'
5
5
6
+ Vue . use ( Inertia )
7
+
6
8
let app = document . getElementById ( 'app' )
7
9
8
10
new Vue ( {
9
11
render : h => h ( Inertia , {
10
12
props : {
11
13
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 )
14
16
} ,
15
17
} ,
16
18
} ) ,
You can’t perform that action at this time.
0 commit comments