vue项目所有vue文件报token.type.endsWith is not a function错误?

项目中所有的vue文件报token.type.endsWith is not a function
查看workorderManagement\index.vue文件的474行,正好是vue中script标签开始的时候,不知道是什么原因造成的?

error  in ./src/views/workorderManagement/index.vue

Syntax Error: TypeError: token.type.endsWith is not a function
Occurred while linting C:\code\uhi-company-web\src\views\workorderManagement\index.vue:474
    at Array.every (<anonymous>)
    at Array.forEach (<anonymous>)
    at Array.forEach (<anonymous>)
    at Array.map (<anonymous>)


 @ ./src/router/index.js 218:51-90
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://10.220.180.87:9528/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
阅读 7.2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题