http://localhost:8088/api/seller#/seller 地址总是不正确
来源:15-5 Vue-router(下)

qq_华筝
2017-04-19
这个地址正确吗? 总是会自动的带上 #/
我看着老师的示例是http://localhost:8088/api/seller
写回答
2回答
-
LittleWorker
2017-12-25
如果是vue 2.0的话,参考老师写的更新说明https://github.com/ustbhuangyi/vue-sell/blob/master/update.md
你的问题应该是webpack.dev.conf.js中需要添加
devServer: {
before(app) {
app.get('/api/seller', function(req, res) {
res.json({
errno: 0,
data: seller
})
});
app.get('/api/goods', function(req, res) {
res.json({
errno: 0,
data: goods
})
});
app.get('/api/ratings', function(req, res) {
res.json({
errno: 0,
data: ratings
})
});
},
00 -
月下背影
2017-04-19
你先看看 你的工程 web的配置文件
00
相似问题