Elementui 的坑
-
如果运行结果出现这个错:this.$Api.sendEmail is not a function。而且此前并未遇到过类似错误,别犹豫,重头开始敲一遍。
注意:sendEmail ,是我定义的一个路径接口
-
使用vue-elementui时候,需要导入 外接组件,切记不要忘了最后面的 分号 “ ;”,不然会提示你错误
导入组件:(留意后面的分号 “ ;”,不要丢) import ToolBar from '~/components/ToolBar/ToolBar.vue'; import HelpHint from '~/components/HelpHint/HelpHint.vue'; import Paginate from '~/components/Pagination/Paginate.vue'; 丢了分号,报错: TypeError: Cannot set property 'pageCode' of undefined