initial commit
This commit is contained in:
14
resources/js/app.js
Normal file
14
resources/js/app.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import '../css/app.css'
|
||||
import { createApp, h } from "vue";
|
||||
import { createInertiaApp, Link } from "@inertiajs/vue3";
|
||||
import '../css/app.css'
|
||||
|
||||
createInertiaApp({
|
||||
resolve: (name) => require(`./pages/${name}`),
|
||||
setup({ el, App, props, plugin }) {
|
||||
createApp({ render: () => h(App, props) })
|
||||
.use(plugin)
|
||||
.component('inertia-link', Link)
|
||||
.mount(el);
|
||||
},
|
||||
});
|
||||
11
resources/js/pages/Home.vue
Normal file
11
resources/js/pages/Home.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<template>
|
||||
{{ test }}
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
defineProps({
|
||||
test: String,
|
||||
})
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user