Commit 592d8ea7 by haojie

1

parent 6f886333
......@@ -5,10 +5,13 @@
</template>
<script setup>
<script setup lang="ts">
import {Head} from '@inertiajs/vue3'
import {ref} from 'vue';
defineProps({info: Object})
const dialog_visible = ref<boolean>(false)
</script>
......@@ -8,9 +8,9 @@ createInertiaApp({
return pages[`./Pages/${name}.vue`]
},
setup({el, App, props, plugin}) {
createSSRApp({render: () => h(App, props)})
// createApp({render: () => h(App, props)})
.use(plugin)
.mount(el)
// const app = createSSRApp({render: () => h(App, props)});
const app = createApp({render: () => h(App, props)});
app.use(plugin);
app.mount(el);
},
})
......@@ -7,7 +7,7 @@ export default defineConfig({
vue(),
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
ssr: 'resources/js/ssr.js',
// ssr: 'resources/js/ssr.js',
refresh: true,
}),
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment