uniapp开发小程序---遇到报错问题

140 阅读1分钟

  • 引入文件不正确
//文件导入需要加上绝对路径
"easycom": {
      "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
  },
  // @/加上即可(在有uView的情况下)