吉安感知网项目-前端
张含笑
2026-02-28 d3640e13b468e003761a4deb1cdaf463911fc455
feat:线上地址
4 files modified
24 ■■■■■ changed files
applications/mobile-web-view/env/.env.development 2 ●●● patch | view | raw | blame | history
applications/mobile-web-view/src/axios.js 9 ●●●● patch | view | raw | blame | history
applications/mobile-web-view/vite.config.mjs 10 ●●●● patch | view | raw | blame | history
uniapps/work-app/src/config/env.js 3 ●●●● patch | view | raw | blame | history
applications/mobile-web-view/env/.env.development
@@ -11,7 +11,7 @@
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
applications/mobile-web-view/src/axios.js
@@ -10,13 +10,14 @@
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
// 全局未授权错误提示状态,只提示一次
@@ -45,6 +46,12 @@
        // } 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'
applications/mobile-web-view/vite.config.mjs
@@ -120,11 +120,11 @@
          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,
uniapps/work-app/src/config/env.js
@@ -15,8 +15,7 @@
  // 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',