【发布时间】:2016-09-26 09:44:19
【问题描述】:
我不知道为什么。我的main.js 文件包含以下内容
// Vue things
import Vue from 'vue'
import VueResource from 'vue-resource'
Vue.use(VueResource)
// Vue Components
import dashboard from 'components/dashboard-component'
new Vue({
el: "body",
components: {
dashboard
},
methods: {
}
})
我的组件文件夹与main.js 在同一个文件夹中。
这是我的 Vue 组件:
<template>
Hello
</template>
<script>
// Exports
export default {
components: {
dashboard
},
props: {
},
data: function (argument) {
},
ready() {
},
methods: {
}
}
</script>
在 components/dashboard-component 下为index.vue。
我做错了什么?
谢谢。
【问题讨论】: