Browse Source

update static/js/request.js.

Signed-off-by: 陈凯楠 <1403191743@qq.com>
dev
陈凯楠 11 months ago
committed by Gitee
parent
commit
bd63374fb5
No known key found for this signature in database GPG Key ID: 173E9B9CA92EEF8F
  1. 3
      static/js/request.js

3
static/js/request.js

@ -3,6 +3,9 @@ import store from '@/store'
const NEWAPIURL = process.env.NODE_ENV == 'development' ? 'https://testtaihu.xmainc.com' : 'https://testtaihu.xmainc.com'
Vue.prototype.NEWAPIURL = NEWAPIURL
// #ifdef H5
NEWAPIURL = '/api'
// #endif
Vue.prototype.Post = (params, apiurl) => {
// if (uni.getStorageSync('userInfo')) params.token = JSON.parse(uni.getStorageSync('userInfo')).token

Loading…
Cancel
Save