Fork me on GitHub

2020年5月18日

vue cli3.0使用axios调用本地json报404

摘要: 原因:最新的vue-cli3.0生成的项目,静态文件变成了public文件 解决: public文件夹下创建js文件夹,在js文件夹下创json文件 请求方式:this.$axios.get('/js/index.json') 阅读全文

posted @ 2020-05-18 15:54 蓝魂殇 阅读(348) 评论(0) 推荐(0) 编辑

导航