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(/(?