1
Mr.Zhang
2023-10-16 c2db28c97e8e5fcd1fa81d6a9887d69b61865184
1
已修改5个文件
12 ■■■■ 文件已修改
minipro_standard/common/config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
minipro_standard/util/request/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
platform_web/src/components/common/CommonHeader.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
platform_web/src/views/login.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
web_standard/.env.lingyang 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
minipro_standard/common/config.js
@@ -2,7 +2,7 @@
    // baseUrl: 'http://106.14.20.42/test_hfznzz/',
    // baseUrl: 'https://hefei.dtkey.cn/test_hfznzz/',
    // baseUrl: 'http://192.168.0.18:10021',
    baseUrl: 'https://dmtest.ahapp.net/doumeeplant_api',
    baseUrl: 'https://www.mes.red/doumeeplant',
    phoneRegular: /^1[3456789]\d{9}$/,
    mailboxRegular: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,
    positiveInteger: /^[0-9]*[1-9][0-9]*$/,
minipro_standard/util/request/index.js
@@ -1,6 +1,5 @@
// 引入配置
import { baseUrl } from '@/common/config'
console.log(baseUrl);
// 初始化请求配置
uni.$u.http.setConfig((defaultConfig) => {
    /* defaultConfig 为默认全局配置 */
platform_web/src/components/common/CommonHeader.vue
@@ -149,10 +149,11 @@
      logout()
        .then(() => {
          this.setUserInfo(null)
          this.$router.push({ name: 'login' })
          // this.$router.push({ path: '/login' })
          window.location.reload()
        })
        .catch(e => {
          this.$tip.apiFailed(e)
          this.$tips.apiFailed(e)
        })
    }
  }
platform_web/src/views/login.vue
@@ -80,7 +80,7 @@
        uuid: this.captcha.uuid
      })
        .then(() => {
          console.log(process.env.VUE_APP_CONTEXT_PATH);
          // console.log(process.env.VUE_APP_CONTEXT_PATH);
          // b7121c39-e109-472f-bb89-722b91289437
          // window.location.href = process.env.VUE_APP_CONTEXT_PATH
          window.location.reload()
web_standard/.env.lingyang
@@ -13,4 +13,4 @@
# 接口前缀
VUE_APP_API_PREFIX = '/doumeeplant/'
VITE_BASE_URL = 'https://127.0.0.1/doumeeplant'
VUE_APP_BASE_URL = 'https://127.0.0.1/doumeeplant'