| | |
| | | // 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]*$/,
|
| | |
| | | // 引入配置
|
| | | import { baseUrl } from '@/common/config' |
| | | console.log(baseUrl);
|
| | | // 初始化请求配置
|
| | | uni.$u.http.setConfig((defaultConfig) => {
|
| | | /* defaultConfig 为默认全局配置 */ |
| | |
| | | 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) |
| | | }) |
| | | } |
| | | } |
| | |
| | | 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()
|
| | |
| | | # 接口前缀 |
| | | VUE_APP_API_PREFIX = '/doumeeplant/' |
| | | |
| | | VITE_BASE_URL = 'https://127.0.0.1/doumeeplant' |
| | | VUE_APP_BASE_URL = 'https://127.0.0.1/doumeeplant' |