Browse Source
update static/js/request.js.
Signed-off-by: 陈凯楠 <1403191743@qq.com>
dev
陈凯楠
11 months ago
committed by
Gitee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with
3 additions and
0 deletions
-
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' |
|
|
const NEWAPIURL = process.env.NODE_ENV == 'development' ? 'https://testtaihu.xmainc.com' : 'https://testtaihu.xmainc.com' |
|
|
Vue.prototype.NEWAPIURL = NEWAPIURL |
|
|
Vue.prototype.NEWAPIURL = NEWAPIURL |
|
|
|
|
|
// #ifdef H5
|
|
|
|
|
|
NEWAPIURL = '/api' |
|
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
|
Vue.prototype.Post = (params, apiurl) => { |
|
|
Vue.prototype.Post = (params, apiurl) => { |
|
|
// if (uni.getStorageSync('userInfo')) params.token = JSON.parse(uni.getStorageSync('userInfo')).token
|
|
|
// if (uni.getStorageSync('userInfo')) params.token = JSON.parse(uni.getStorageSync('userInfo')).token
|
|
|