记录vue页面使用public目录下静态资源

83 阅读1分钟

1.public 下新建了一个json

image.png

image.png

2.vue文件中直接调接口

image.png

3.打包后需要修改直接改json就好了