| | |
| | | VITE_APP_XT_URL = http://218.202.104.82:8200 |
| | | |
| | | #工单详情(分享链接) |
| | | VITE_APP_XT_URL_GD = http://192.168.1.227 |
| | | VITE_APP_XT_URL_GD = http://219.146.74.42:8015 |
| | | # ws地址 |
| | | VITE_APP_WS_API_URL = wss://wrj.shuixiongit.com/drone-wss/api/v1/ws |
| | | |
| | |
| | | import router from '@/router/' |
| | | import { serialize } from '@/utils/util' |
| | | import { getToken, removeRefreshToken, removeToken } from '@/utils/auth' |
| | | import { validatenull } from '@/utils/validate' |
| | | import { isURL, validatenull } from '@/utils/validate' |
| | | import website from '@/config/website' |
| | | import NProgress from 'nprogress' // progress bar |
| | | import 'nprogress/nprogress.css' // progress bar style |
| | | import crypto from '@/utils/crypto' |
| | | import { getStore } from '@/utils/store' |
| | | import { showToast } from 'vant' |
| | | import { baseUrl } from '@/config/env' |
| | | |
| | | let { VITE_APP_ENV,VITE_APP_XT_URL,VITE_APP_API } = import.meta.env |
| | | // 全局未授权错误提示状态,只提示一次 |
| | |
| | | // } else { |
| | | // config.url = VITE_APP_XT_URL + config.url |
| | | // } |
| | | |
| | | //地址为已经配置状态则不添加前缀 |
| | | if (!isURL(config.url) && !config.url.startsWith(baseUrl)) { |
| | | config.url = baseUrl + config.url |
| | | } |
| | | |
| | | config.headers['areaCode'] = store.state.user.selectedAreaCode |
| | | //安全请求header |
| | | config.headers['Blade-Requested-With'] = 'BladeHttpRequest' |
| | |
| | | rewrite: path => path.replace(/^\/webservice/, '/webservice'), |
| | | }, |
| | | |
| | | // '/drone-gd': { |
| | | // target: VITE_APP_XT_URL_GD, |
| | | // changeOrigin: true, |
| | | // rewrite: path => path.replace(/^\/drone-gd/, '/drone-gd'), |
| | | // }, |
| | | '/api/drone-gd': { |
| | | target: VITE_APP_XT_URL_GD, |
| | | changeOrigin: true, |
| | | rewrite: path => path.replace(/^\/drone-gd/, '/drone-gd'), |
| | | }, |
| | | |
| | | '/api': { |
| | | target: VITE_APP_XT_URL, |
| | |
| | | // VITE_APP_WEBVIEW_URL: 'https://wrj.shuixiongit.com/mobile-web-view/#/webViewWrapper', |
| | | VITE_APP_WEBVIEW_URL: 'https://192.168.1.157:5179/mobile-web-view/#/webViewWrapper', |
| | | VITE_API_BASE_URL: 'http://218.202.104.82:8200', |
| | | VITE_API_BASE_URL_GD: 'http://192.168.1.227', |
| | | // VITE_API_BASE_URL_GD: 'http://219.146.74.42:8015/api/', |
| | | VITE_API_BASE_URL_GD: 'http://219.146.74.42:8015/api/', |
| | | // VITE_API_BASE_URL: 'https://aisky.org.cn/api', |
| | | VITE_APP_WS_API_URL:'wss://wrj.shuixiongit.com/drone-wss/api/v1/ws', |
| | | |