vue.esm.js?efeb:591 [Vue warn]: Error in created hook: "TypeError: this.getMenus is not a function"
found in
---> <Category> at src\views\modules\product\category.vue
<ElCard> at packages/card/src/main.vue
<ElTabPane> at packages/tabs/src/tab-pane.vue
<ElTabs> at packages/tabs/src/tabs.vue
<MainContent> at src\views\main-content.vue
<Main> at src\views\main.vue
<App> at src\App.vue
<Root>
methods: {
handleNodeClick (data) {
console.log(data);
},
getWenus () {
this.$http({
url: this.$http.adornUrl('/product/category/list/tree'),
method: 'get'
}).then(({ data }) => {
console.log("成功获取数据……", data)
})
}
},