Skip to content

Commit

Permalink
[modify]{proxy}: 修改music代理地址
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Nov 24, 2019
1 parent 06ad3fa commit 5c5adcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module.exports = {
},
},
'/music': {
target: 'https://music.163.com/', // 设置你调用的接口域名和端口号 别忘了加http
target: 'https://music.163.com/weapi/v3/playlist/detail', // 设置你调用的接口域名和端口号 别忘了加http
changeOrigin: true,
pathRewrite: {
'^/music': '', // 这里理解成用‘/api’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add',直接写‘/api/user/add’即可
Expand Down

0 comments on commit 5c5adcc

Please sign in to comment.