diff --git a/pages/index/newindex.vue b/pages/index/newindex.vue index 13c16e2..8d5b8d6 100644 --- a/pages/index/newindex.vue +++ b/pages/index/newindex.vue @@ -43,7 +43,7 @@ {{user.userPhone || '暂未设置'}} {{user.name ||'暂未设置'}} - {{user.roles[0].roleName}} + diff --git a/utils/request.js b/utils/request.js index 959c784..b640ec2 100644 --- a/utils/request.js +++ b/utils/request.js @@ -3,10 +3,10 @@ import utils from '@/utils/encode' // const env = process.env.NODE_ENV // const env = 'test' const env = 'production' -const testUrl = 'http://192.168.0.23:38080' +const testUrl = 'http://192.168.110.10:38080' // const productUrl = 'https://www.xingoil.com/adminapi' -const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new -// const productUrl = 'http://uat.xingoil.com/adminapi' +// const productUrl = 'https://www.xingoil.com/adminapi' // 生产,加密 new +const productUrl = 'http://uat.xingoil.com/adminapi' const service = axios.create({ baseURL: env == 'production' ? productUrl : testUrl,