0

import { createApp, h } from 'vue';
import { App as InertiaApp, plugin as InertiaPlugin } from '@inertiajs/inertia-vue3';
import { InertiaProgress } from '@inertiajs/progress';

import Vuesax from 'vuesax'
import 'vuesax/dist/vuesax.css'

const el = document.getElementById('app');

createApp({
    render: () =>
        h(InertiaApp, {
            initialPage: JSON.parse(el.dataset.page),
            resolveComponent: (name) => require(`./Pages/${name}`).default,
        }),
})
    .mixin({ methods: { route } })
    .use(InertiaPlugin)
    .component('vuesax', Vuesax)
    .mount(el);
在此处输入图像描述

你好!我在使用 Vue3 的 Laravel Jetstream 项目中实现 Vuesax 时遇到问题

4

0 回答 0