簡體   English   中英

vscode [ctrl+click] 'vue 單文件組件','去定義' 不起作用

[英]vscode [ctrl+click] 'vue single-file components', 'go to definition' not working

// src/ui/tabbar/Index.vue
<template>
  <div>
    my-tabbar
  </div>
</template>

// src/ui/index.js
import MyTabbar from './tabbar/Index.vue'

export default {
  install(Vue) {
    Vue.component(MyTabbar.name, MyTabbar)
  }
}

// src/main.js
import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false
Vue.use(ui)

new Vue({
  render: (h) => h(App)
}).$mount('#app')

// src/App.vue
<template>
  // [ctrl + click] my-tabbar tips no definition found for 'my-tabbar'
  <my-tabbar>/<my-tabbar>
</template>

vscode [ctrl+click] 'vue 單文件組件','去定義' 不起作用

我如何 [ctrl + click] 跳轉到 'src/ui/tabbar/Index.vue'

你能告訴我你知道的任何事情嗎? 謝謝你!!!

我使用了vue-helper擴展和volar

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM