ai-question-pro 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,13 +2,14 @@ import axios from 'axios'
2
2
  import Cookies from 'js-cookie'
3
3
  import cache from '../plugins/cache'
4
4
  // import { Message } from 'element-ui'
5
+ const door = sessionStorage.getItem('baseUrl');
5
6
 
6
7
  axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
7
8
 
8
9
  const service = axios.create({
9
10
  // axios中请求配置有baseURL选项,表示请求URL公共部分
10
11
  // baseURL: process.env.VUE_APP_BASE_API_Aimp4,
11
- baseURL: 'https://zjyw.icve.com.cn/ai-api',
12
+ baseURL: door || 'https://zjyw.icve.com.cn/ai-api',
12
13
  // baseURL: 'http://192.168.130.70:8899',
13
14
  // 超时
14
15
  timeout: 80000
@@ -653,7 +653,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf
653
653
  /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
654
654
  /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
655
655
  /******/ var installedChunks = {
656
- /******/ 515: 0
656
+ /******/ 429: 0
657
657
  /******/ };
658
658
  /******/
659
659
  /******/ // no chunk on demand loading
@@ -4959,12 +4959,12 @@ const localCache = {
4959
4959
 
4960
4960
 
4961
4961
  // import { Message } from 'element-ui'
4962
-
4962
+ const door = sessionStorage.getItem('baseUrl');
4963
4963
  lib_axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8';
4964
4964
  const service = lib_axios.create({
4965
4965
  // axios中请求配置有baseURL选项,表示请求URL公共部分
4966
4966
  // baseURL: process.env.VUE_APP_BASE_API_Aimp4,
4967
- baseURL: 'https://zjyw.icve.com.cn/ai-api',
4967
+ baseURL: door || 'https://zjyw.icve.com.cn/ai-api',
4968
4968
  // baseURL: 'http://192.168.130.70:8899',
4969
4969
  // 超时
4970
4970
  timeout: 80000
@@ -5465,4 +5465,4 @@ const install = function (Vue) {
5465
5465
  module.exports = __webpack_exports__;
5466
5466
  /******/ })()
5467
5467
  ;
5468
- //# sourceMappingURL=ai-question.common.js.map
5468
+ //# sourceMappingURL=ai-question-pro.common.js.map