我如何使用vue<悬念>在拉拉维尔?

发布于 2025-02-06 20:04:07 字数 408 浏览 1 评论 0原文

我尝试了很多方法在Laravel Blade模板中使用悬疑组件,并且由于使用较低的连字符访问了组件,例如logincomponent..vue可以使用&lt; login-component&gt;/login-component&gt;/login-compont;/login-component&llogin-component&gt; << /代码>。我已经尝试了&lt; suspense&gt;&lt;/suspense&gt; and &lt; suspense&gt;&gt;/suspense&gt;,但我遇到了一个错误,说自定义组件未定义。

有什么方法需要导入它,还是必须在某个地方注册组件?

如果您有任何想法,请放下它。.每项贡献都很重要。 提前致谢。

I have tried so many ways to use Suspense component in laravel blade template and since components are accessed using lowercase with hyphens, for example LoginComponent.vue can be accessed using <login-component></login-component>. I have tried <Suspense></Suspense> and <suspense></suspense> but I get an error saying custom component is not defined.

Is there a way I need to import it or do I have to register the component somewhere?

If you have any idea please drop it.. every contribution counts.
Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文