修改手机端PC端接口分离

This commit is contained in:
高嵩
2023-07-03 09:04:19 +08:00
parent 9e67b2dafe
commit 8a9ebcc57c
27 changed files with 5858 additions and 12 deletions
+9 -1
View File
@@ -11,7 +11,15 @@ import { ACCESS_TOKEN, TENANT_ID } from '@/store/mutation-types'
* 则映射后端域名,通过 vue.config.js
* @type {*|string}
*/
let apiBaseUrl = window._CONFIG['domianURL'] || '/jero-boot'
let apiBaseUrl = ''
let isPhone = localStorage.getItem('isPhone')
if (isPhone == 'yes'){
apiBaseUrl = '/jero-boot/phone'
}else{
apiBaseUrl = '/jero-boot'
}
// let apiBaseUrl = window._CONFIG['domianURL'] || '/jero-boot'
//console.log("apiBaseUrl= ",apiBaseUrl)
// 创建 axios 实例
const service = axios.create({