From bd63374fb504592b88662b6fcc5a6861117d9842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=87=AF=E6=A5=A0?= <1403191743@qq.com> Date: Wed, 27 Nov 2024 03:45:00 +0000 Subject: [PATCH] update static/js/request.js. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈凯楠 <1403191743@qq.com> --- static/js/request.js | 3 +++ 1 file changed, 3 insertions(+) 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