From 474b3a10917be62b9ce3b821aa280ce945c8ad8b Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Wed, 27 May 2026 17:15:21 +0800 Subject: [PATCH] refactor(http): rename platform info variables to camelCase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 统一将平台信息相关变量从下划线命名改为驼峰命名,保持代码命名风格一致,同时修正请求参数中对应字段的赋值。 --- common/js/http.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/js/http.js b/common/js/http.js index a7a8b22..1b46061 100644 --- a/common/js/http.js +++ b/common/js/http.js @@ -3,7 +3,7 @@ import Util from './util.js' import store from '@/store/index.js' import Platform from './platform.js' -const { app_type, app_type_name } = Platform.getPlatformInfo(); +const { appType, appTypeName } = Platform.getPlatformInfo(); export default { sendRequest(params) { @@ -16,11 +16,11 @@ export default { return; } - var method = params.data != undefined ? 'POST' : 'GET', // 请求方式 - url = (Config.baseUrl + params.url).replace(/(?