ai-read-over-pro 0.0.1 → 0.0.2
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.
- package/components/demo/api/index.js +4 -3
- package/components/demo/utils/constants.js +2 -0
- package/components/demo/utils/request.js +4 -3
- package/dist/ai-read-over-pro.common.js +21 -17
- package/dist/ai-read-over-pro.common.js.map +1 -1
- package/dist/ai-read-over-pro.umd.js +21 -17
- package/dist/ai-read-over-pro.umd.js.map +1 -1
- package/dist/ai-read-over-pro.umd.min.js +5 -5
- package/dist/ai-read-over-pro.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import request from '../utils/request'
|
|
2
|
-
|
|
3
|
-
const
|
|
1
|
+
import request from '../utils/request';
|
|
2
|
+
import constants from '../utils/constants';
|
|
3
|
+
const baseURL = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_BASE_URL') || constants.publicPath;
|
|
4
|
+
const prefix = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_PRE_FIX') || constants.publicPrefix;
|
|
4
5
|
import cache from '../plugins/cache';
|
|
5
6
|
import { EventSourcePolyfill } from 'event-source-polyfill';
|
|
6
7
|
export const ssoAuth = (token) => {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import axios from 'axios'
|
|
2
2
|
import cache from '../plugins/cache'
|
|
3
3
|
import { Message } from 'element-ui'
|
|
4
|
-
const door = sessionStorage.getItem('
|
|
4
|
+
const door = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_BASE_URL');
|
|
5
5
|
import { decrypt } from './aes-utils';
|
|
6
|
+
import constants from '../utils/constants';
|
|
6
7
|
|
|
7
|
-
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
|
|
8
|
+
axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8';
|
|
8
9
|
|
|
9
10
|
const service = axios.create({
|
|
10
11
|
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
|
11
|
-
baseURL: door ||
|
|
12
|
+
baseURL: door || constants.publicPath,
|
|
12
13
|
// 超时
|
|
13
14
|
timeout: 80000
|
|
14
15
|
})
|
|
@@ -11683,16 +11683,32 @@ function decrypt(word) {
|
|
|
11683
11683
|
let decryptedStr = decrypt.toString((crypto_js_default()).enc.Utf8);
|
|
11684
11684
|
return decryptedStr.toString();
|
|
11685
11685
|
}
|
|
11686
|
+
;// CONCATENATED MODULE: ./components/demo/utils/constants.js
|
|
11687
|
+
let appId = '601a39a2a4a7cd88d5ddcef5';
|
|
11688
|
+
const whiteList = ['/home', '/overview'];
|
|
11689
|
+
if (({"NODE_ENV":"production","BASE_URL":""}).VITE_APP_BUILD_TYPE === 'aliyun') {
|
|
11690
|
+
appId = '6572ba195ec962924cc39951';
|
|
11691
|
+
}
|
|
11692
|
+
/* harmony default export */ var constants = ({
|
|
11693
|
+
'X-Enterprise-Id': 'www.hep-zj.com.cn',
|
|
11694
|
+
'X-App-Id': '90403a27c0704259ab7a3c8aab4489b3',
|
|
11695
|
+
'X-App-Secret': 'bc11ce7c44824fcaa23ff301a54b7094',
|
|
11696
|
+
appId,
|
|
11697
|
+
whiteList,
|
|
11698
|
+
publicPath: 'https://agent.icve.com.cn/heatp-portal/do/',
|
|
11699
|
+
publicPrefix: '/heatp'
|
|
11700
|
+
});
|
|
11686
11701
|
;// CONCATENATED MODULE: ./components/demo/utils/request.js
|
|
11687
11702
|
|
|
11688
11703
|
|
|
11689
11704
|
|
|
11690
|
-
const door = sessionStorage.getItem('
|
|
11705
|
+
const door = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_BASE_URL');
|
|
11706
|
+
|
|
11691
11707
|
|
|
11692
11708
|
lib_axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8';
|
|
11693
11709
|
const service = lib_axios.create({
|
|
11694
11710
|
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
|
11695
|
-
baseURL: door ||
|
|
11711
|
+
baseURL: door || constants.publicPath,
|
|
11696
11712
|
// 超时
|
|
11697
11713
|
timeout: 80000
|
|
11698
11714
|
});
|
|
@@ -11751,8 +11767,9 @@ service.interceptors.response.use(res => {
|
|
|
11751
11767
|
var eventsource = __webpack_require__(976);
|
|
11752
11768
|
;// CONCATENATED MODULE: ./components/demo/api/index.js
|
|
11753
11769
|
|
|
11754
|
-
|
|
11755
|
-
const
|
|
11770
|
+
|
|
11771
|
+
const baseURL = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_BASE_URL') || constants.publicPath;
|
|
11772
|
+
const prefix = sessionStorage.getItem('AI-INTELLIGENT-TOOLS_PRE_FIX') || constants.publicPrefix;
|
|
11756
11773
|
|
|
11757
11774
|
|
|
11758
11775
|
const ssoAuth = token => {
|
|
@@ -11827,19 +11844,6 @@ const registerSse = (sseSessionId, fn) => {
|
|
|
11827
11844
|
}, 'reanswer');
|
|
11828
11845
|
});
|
|
11829
11846
|
};
|
|
11830
|
-
;// CONCATENATED MODULE: ./components/demo/utils/constants.js
|
|
11831
|
-
let appId = '601a39a2a4a7cd88d5ddcef5';
|
|
11832
|
-
const whiteList = ['/home', '/overview'];
|
|
11833
|
-
if (({"NODE_ENV":"production","BASE_URL":""}).VITE_APP_BUILD_TYPE === 'aliyun') {
|
|
11834
|
-
appId = '6572ba195ec962924cc39951';
|
|
11835
|
-
}
|
|
11836
|
-
/* harmony default export */ var constants = ({
|
|
11837
|
-
'X-Enterprise-Id': 'www.hep-zj.com.cn',
|
|
11838
|
-
'X-App-Id': '90403a27c0704259ab7a3c8aab4489b3',
|
|
11839
|
-
'X-App-Secret': 'bc11ce7c44824fcaa23ff301a54b7094',
|
|
11840
|
-
appId,
|
|
11841
|
-
whiteList
|
|
11842
|
-
});
|
|
11843
11847
|
;// CONCATENATED MODULE: ./components/demo/utils/config.js
|
|
11844
11848
|
|
|
11845
11849
|
|