Vue3路由页面出现问题,控制台警告,打包之后页面显示空白

在本地Vue3编译运行代码过程中出现Component "default" in record with path "/TableSlides" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.

img

img

在项目打包运行出现空白页面,原先并没有

路径为“/TableSlides”的记录中的组件“default”是一个不返回Promise的函数。如果要传递函数组件,请确保向该组件添加“displayName”。如果不修复,这将中断生产。

https://blog.csdn.net/mmiaoChong/article/details/118541563

我帮你翻译了一下错误提示,希望对你有帮助
/ tableslides_;是一个不返回Promise的函数。如果你正在传递一个功能组件,请确保添加一个&;displayname&;到组件。如果不修复,这将在生产中中断。