diff --git a/static/js/request.js b/static/js/request.js index 4277ea6..b38cdf7 100644 --- a/static/js/request.js +++ b/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