@bit-sun/business-component 2.4.2 → 2.4.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.
- package/dist/index.esm.js +7 -8
- package/dist/index.js +7 -8
- package/package.json +1 -1
- package/src/utils/requestUtils.ts +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -749,14 +749,13 @@ function handleRequestAuthHeader(config) {
|
|
|
749
749
|
* 获取当前组件服务项目
|
|
750
750
|
* */
|
|
751
751
|
var getCurrentUseProject = function getCurrentUseProject() {
|
|
752
|
-
var project = '
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
}
|
|
752
|
+
var project = 'GuoYao';
|
|
753
|
+
// if(hostname?.indexOf('omni')>-1 || hostname?.indexOf('eeka')>-1 || hostname?.indexOf('koradior')>-1) {
|
|
754
|
+
// project = 'YingJia'
|
|
755
|
+
// }
|
|
756
|
+
// if(hostname?.indexOf('guoyaoshuke')>-1 || hostname?.indexOf('10.31.249.136')>-1) {
|
|
757
|
+
// project = 'GuoYao'
|
|
758
|
+
// }
|
|
760
759
|
return project;
|
|
761
760
|
};
|
|
762
761
|
/*
|
package/dist/index.js
CHANGED
|
@@ -768,14 +768,13 @@ function handleRequestAuthHeader(config) {
|
|
|
768
768
|
* 获取当前组件服务项目
|
|
769
769
|
* */
|
|
770
770
|
var getCurrentUseProject = function getCurrentUseProject() {
|
|
771
|
-
var project = '
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
}
|
|
771
|
+
var project = 'GuoYao';
|
|
772
|
+
// if(hostname?.indexOf('omni')>-1 || hostname?.indexOf('eeka')>-1 || hostname?.indexOf('koradior')>-1) {
|
|
773
|
+
// project = 'YingJia'
|
|
774
|
+
// }
|
|
775
|
+
// if(hostname?.indexOf('guoyaoshuke')>-1 || hostname?.indexOf('10.31.249.136')>-1) {
|
|
776
|
+
// project = 'GuoYao'
|
|
777
|
+
// }
|
|
779
778
|
return project;
|
|
780
779
|
};
|
|
781
780
|
/*
|
package/package.json
CHANGED
|
@@ -60,10 +60,10 @@ const handleCommonHeader = () => {
|
|
|
60
60
|
case 'GuoYao':
|
|
61
61
|
commonHeaders = {
|
|
62
62
|
'sso-sessionid': getGuoyaoshukeSessionId(),
|
|
63
|
-
'gksk-account-id': getGuoyaoshukeAccountId(),
|
|
64
|
-
'gksk-employee-id': getGuoyaoshukeEmployeeId(),
|
|
65
|
-
'
|
|
66
|
-
'
|
|
63
|
+
// 'gksk-account-id': getGuoyaoshukeAccountId(),
|
|
64
|
+
// 'gksk-employee-id': getGuoyaoshukeEmployeeId(),
|
|
65
|
+
'Gksk-Tenant-Id': getCurrentTenantId(),
|
|
66
|
+
'Gksk-Access-Token': getGuoyaoshukeToken()
|
|
67
67
|
}
|
|
68
68
|
break;
|
|
69
69
|
default:
|