问题:nuxt 在page页面导入组件不生效也不报错

      我是一个刚出来实习的前端新人,最近在写公司项目的时候需要用到nuxt就囫囵吞枣学了会就开始上手使用了,只能说基础知识不过关,导致后面越写越难受。

      

<template>
  <div>
    <div class="box">
      <div>
        <div class="title">有限公司</div>
        <div>
          <p><i class="iconfont icon-dianhua1"></i>售后服务电话:4009-123-456</p>
          <p><i class="iconfont icon-kehuguanli"></i>大客户服务电话:15877455698</p>
          <p><i class="iconfont icon-youxiang"></i>投诉邮箱:123456@qq.com</p>
          <p><i class="iconfont icon-dingwei"></i>地址:囫囵吞枣市吞枣县囫囵镇1-1号</p>
        </div>
        <div class="qrCode">
          <img src="http://www.berkair.cn/res/202402/26/bee737918c4c0c8b.png" alt="">
          <img src="http://www.berkair.cn/res/202402/26/bee737918c4c0c8b.png" alt="">
          <img src="http://www.berkair.cn/res/202402/26/bee737918c4c0c8b.png" alt="">
        </div>
      </div>
      <div></div>
    </div>
  </div>
</template>

<script setup>

</script>

<style scoped>
  .box{
    height: 1000px;
  }
</style>
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.

这个是我address组件

html你不知道的几个标签_html

可以看得到我这边是引入了address组件  

html你不知道的几个标签_html_02

好像给我解析成了html标签?

在此之前我不知道 html居然还有address这个标签???然后我就百度了一下 

html你不知道的几个标签_html_03

前端真的学一个忘一个   返璞归真  太难了大佬们