I tried to render a component using that function and got that error.
<script>
import About from '../components/About';
const pages = {
About
};
export default {
data() {
return {
pageToShow: {
render: h => h('div', '')
}
};
},
methods: {
load(page) {
this.pageToShow = pages[page];
console.log('e');
}
}
};
</script>
error: "export 'h' was not found in 'vue'
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…