TOP

PeterChu PeterChu

我的自留地

目录
浅尝 Vue —— 笔记三 Vue前端异常 Expected String with value "undefined", got Undefined
/  

浅尝 Vue —— 笔记三 Vue前端异常 Expected String with value "undefined", got Undefined

Vue前端异常 :

Invalid prop: type check failed for prop "index". Expected String with value "undefined", got Undefined

原因
stxxxx 包中将 index.vue 修改为 stxxxxIndex.vue 时,自动修改了引用,造成 Sidebar.vue 中的引用被修改。

解决
使用 Tgit 比对代码,将被修改的地方修复。

结论
当如果需要将某个正在使用的文件重命名,然后创建新的同名文件时,需要注意不要关联修改引用。


标题:浅尝 Vue —— 笔记三 Vue前端异常 Expected String with value "undefined", got Undefined
作者:PeterChu
地址:https://txjchu.gitee.io/articles/2021/02/10/1612938069938.html