当我们尝试使用一个不存在的组件时,我希望生成一个错误,而不是像控制台中的简单警告那样:
[Vue warn]: Failed to resolve component: nonexisting-component If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. at <MainLayout onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > > at <RouterView> at <App>
有时候人们会破坏流程,但他们可能没有注意到,因为组件根本不会显示出来。有没有办法解决这个问题?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号