Skip to content
This repository has been archived by the owner on Mar 13, 2020. It is now read-only.

banner.json和task.json报404错误 #49

Open
rainwalkerhu opened this issue Feb 15, 2017 · 3 comments
Open

banner.json和task.json报404错误 #49

rainwalkerhu opened this issue Feb 15, 2017 · 3 comments

Comments

@rainwalkerhu
Copy link

你好,我下载你的demo后npm run dev开发模式跑起来后,无法获取到banner.js和task.js,报404错误,从搜索引擎查询结果查到这个:放在目录里并不意味能通过http访问。要么另起web服务serve这个目录,要么放在static目录里,因为dev-server对该目录文件实现了http访问。不知该咋解决 ?

@1120340041
Copy link

你路径改一下好了,访问外部的静态图片就可以了

@v2018z
Copy link

v2018z commented Mar 15, 2017

1、
// Vue.http.options.root = process.env.NODE_ENV === 'development' ? 'src/assets/data' : '/vue-sui-demo/static/data'
2、
.json 的文件改用 file-loader 加载,然后

676ae7ec-0b52-4678-9698-cf0e7f525e82

@ypcGitHub
Copy link

我也有这个问题,请问解决了吗?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants