zsmile
V2EX  ›  问与答

最近项目里 vue 出了一个问题, vue Component 错误引用组件名称

  •  
  •   zsmile · Dec 6, 2019 · 1808 views
    This topic created in 2348 days ago, the information mentioned may be changed or developed.

    我在一个路由子界面里面,添加了一个组件 A,组件 A 里面的 Component 引用了组件 C,但我没有 import C 组件。 这时代码不报错,但是我的整个路由子界面没有加载出来是什么问题,用到的主要环境配置如下:

    "axios": "^0.18.0", "echarts": "^4.1.0", "element-ui": "^2.6.1", "gulp": "^3.9.1", "gulp-concat": "^2.6.1", "gulp-load-plugins": "^1.5.0", "gulp-replace": "^1.0.0", "gulp-shell": "^0.7.0", "npm": "^6.9.0", "svg-sprite-loader": "^4.1.3", "vue": "^2.5.2", "vue-cookie": "^1.1.4", "vue-cookies": "^1.5.12", "vue-jstree": "^2.1.6", "vue-quill-editor": "^3.0.6", "vue-router": "^3.0.1", "vuex": "^3.1.0"
    

    发现路由子界面的 component 里面,随便写个单词。。又不报错,整个子界面也显示不出来


    还望各位大佬们,指点迷津

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   999 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 22:17 · PVG 06:17 · LAX 15:17 · JFK 18:17
    ♥ Do have faith in what you're doing.