老师求教 SupportIco 浏览器报错。

来源:3-1 目录结构 & header 组件

小吉贝尔

2019-06-23

老师您好,我用的vue是3.8版本。我的SupportIco调用图标都显示不出来。浏览器报错。
[HMR] Waiting for update signal from WDS…
vue.runtime.esm.js?2b0e:619 [Vue warn]: Property or method “iconCls” is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

found in

—> at src/components/support-ico/support-ico.vue
at src/components/v-header/v-header.vue
at src/App.vue

请问这是怎么回事。

写回答

1回答

ustbhuangyi

2019-06-23

报错已经说的很明白了,你的 support-ico.vue 中没有定义 iconCls

0
1
小吉贝尔
已经解决了。谢谢老师
2019-06-23
共1条回复

Vue.js2.5+cube-ui重构饿了么App(经典再升级)

掌握Vue1.0到2.0再到2.5最全版本应用与迭代,打造极致流畅的WebApp

9868 学习 · 4162 问题

查看课程