Skip to content

Commit

Permalink
修改接口域名为本地
Browse files Browse the repository at this point in the history
  • Loading branch information
guopengfei116 committed Mar 2, 2018
1 parent 9a4e984 commit 19b5dc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/component/admin/subcom/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
export default {
data() {
return {
uname: localStorage.getItem('uname')
uname: localStorage.getItem('uname') // 从storage获取刚刚登陆的用户名
}
},
Expand Down
3 changes: 2 additions & 1 deletion src/js/api.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// 导出域名
export const domain = 'http://157.122.54.189:9095';
// export const domain = 'http://157.122.54.189:9095'; // 线上的
export const domain = 'http://localhost:8899'; // 本地的

// 默认导出整个接口配置
export default {
Expand Down

0 comments on commit 19b5dc5

Please sign in to comment.