| | |
| | | * @author Tevin |
| | | */ |
| | | |
| | | // import Axios from 'axios'; |
| | | // import Qs from 'qs'; |
| | | // import {message, Modal} from 'antd'; |
| | | // import { AtToast } from 'taro-ui-vue' |
| | | import Taro from '@tarojs/taro'; |
| | | import {Tools} from '@components/common/Tools'; |
| | | |
| | |
| | | if (Tools.getTopUrlParam('query') === 'real') { |
| | | return false; |
| | | } |
| | | // 当没有 url 指定时,只有内网 ip 和 35** 的端口号,视为本地开发模式 |
| | | return /^(192|127|localhost).*?:35\d{2}$/i.test(window.location.host); |
| | | // 当没有 url 指定时,只有内网 ip 和 33** 的端口号,视为本地开发模式 |
| | | return /^(192|127|localhost).*?:33\d{2}$/i.test(window.location.host); |
| | | })(); |
| | | |
| | | |