yuang-framework-ui-common 1.0.92 → 1.0.93
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { nextTick } from 'vue';
|
|
2
2
|
import { http } from '../../../lib/config/httpConfig';
|
|
3
|
+
import { application } from '../../../lib/config/applicationConfig';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* 处理分组树默认展开节点,由于树组件的默认展开节点是异步的,所以需要手动处理默认展开节点
|
|
@@ -9,7 +10,7 @@ const handleFrameworkGroupTreeDefaultExpandNode = async ({ id, treeId }) => {
|
|
|
9
10
|
console.error(`参数[treeId]不存在`);
|
|
10
11
|
return;
|
|
11
12
|
}
|
|
12
|
-
const res = await http.post(
|
|
13
|
+
const res = await http.post(`${application.gatewayServerBaseUrl}/framework-api/core/framework-group/selectAncestorList`, { idForEqual: id, isReverseAncestorList: true });
|
|
13
14
|
const ancestorList = res.data.data;
|
|
14
15
|
expandNodeImpl({ ancestorList, index: 0, treeId });
|
|
15
16
|
};
|
package/lib/utils/ssoUtils.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { getIsDebug } from '../utils/htmlUtils';
|
|
|
12
12
|
* @param ssoRedirectUrl
|
|
13
13
|
*/
|
|
14
14
|
const getSsoLoginUrl = (ssoRedirectUrl = '') => {
|
|
15
|
-
if(getIsDebug) {
|
|
15
|
+
if(getIsDebug()) {
|
|
16
16
|
debugger;
|
|
17
17
|
}
|
|
18
18
|
let gatewayServerBaseUrl = application.gatewayServerBaseUrl;
|
|
@@ -36,7 +36,7 @@ const getSsoLoginUrl = (ssoRedirectUrl = '') => {
|
|
|
36
36
|
* @param ssoRedirectUrl
|
|
37
37
|
*/
|
|
38
38
|
const getSsoAuthUrl = (ssoRedirectUrl = '') => {
|
|
39
|
-
if(getIsDebug) {
|
|
39
|
+
if(getIsDebug()) {
|
|
40
40
|
debugger;
|
|
41
41
|
}
|
|
42
42
|
let gatewayServerBaseUrl = application.gatewayServerBaseUrl;
|
|
@@ -60,7 +60,7 @@ const getSsoAuthUrl = (ssoRedirectUrl = '') => {
|
|
|
60
60
|
* @param ssoRedirectUrl
|
|
61
61
|
*/
|
|
62
62
|
const getSsoLogoutUrl = (ssoRedirectUrl = '') => {
|
|
63
|
-
if(getIsDebug) {
|
|
63
|
+
if(getIsDebug()) {
|
|
64
64
|
debugger;
|
|
65
65
|
}
|
|
66
66
|
let gatewayServerBaseUrl = application.gatewayServerBaseUrl;
|
|
@@ -84,7 +84,7 @@ const getSsoLogoutUrl = (ssoRedirectUrl = '') => {
|
|
|
84
84
|
* @param ssoRedirectRoutePath
|
|
85
85
|
*/
|
|
86
86
|
const getSsoAuthRoutePath = (ssoRedirectRoutePath = '') => {
|
|
87
|
-
if(getIsDebug) {
|
|
87
|
+
if(getIsDebug()) {
|
|
88
88
|
debugger;
|
|
89
89
|
}
|
|
90
90
|
let ssoAuthRoutePath = '/sso/sso-auth/index';
|
|
@@ -93,7 +93,7 @@ const getSsoAuthRoutePath = (ssoRedirectRoutePath = '') => {
|
|
|
93
93
|
} else {
|
|
94
94
|
ssoAuthRoutePath += `?ssoRedirectRoutePath=${encodeURIComponent(ssoRedirectRoutePath)}`;
|
|
95
95
|
}
|
|
96
|
-
if(getIsDebug) {
|
|
96
|
+
if(getIsDebug()) {
|
|
97
97
|
console.log('ssoAuthRoutePath', ssoAuthRoutePath);
|
|
98
98
|
}
|
|
99
99
|
return ssoAuthRoutePath;
|