原因:最新的vue-cli3.0生成的项目,静态文件变成了public文件
解决: public文件夹下创建js文件夹,在js文件夹下创json文件
请求方式:
this.$axios.get('/js/index.json')
原因:最新的vue-cli3.0生成的项目,静态文件变成了public文件
解决: public文件夹下创建js文件夹,在js文件夹下创json文件
请求方式:
this.$axios.get('/js/index.json')
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M