Skip to content

Commit

Permalink
[feature]{music}: 再次调整一次api..
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Jul 25, 2019
1 parent bf83ac3 commit 897df6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/DouBan/music.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default {
// 表格当前页数据
tableData: null,
// 请求的URL
url: '/music',
url: '/music/weapi/v3/playlist/detail',
// 下拉菜单选项
select: '',
// 默认每页数据量
Expand Down
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/weapi/v3/playlist/detail', // 设置你调用的接口域名和端口号 别忘了加http
target: 'https://music.163.com/', // 设置你调用的接口域名和端口号 别忘了加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 897df6c

Please sign in to comment.