运行成功没有报错但是就是不显示内容
进浏览器看到控制台的报错信息:vue.runtime.esm.js?c320:4573 [Vue warn]: Property or method "yzmStr" 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://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
found in
---> <Register> at views/register.vue
<App> at src/App.vue
<Root>
发现是main.js出了问题。引用element ui时少输入了一行。
以下是全局引入element ui 的代码:
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)