vue3运行报错:We're sorry but demo doesn't work properly without JavaScript enabled. Please enable it to continue.

router下的index文件内容:


在HTML网页没有显示内容,但检查后能看到明显的报错


已经尝试过:
前端修改方式:将mode类型由history改成hash;
没有解决

麻烦哪位大佬支持一下