@zscreate/form-component 1.1.227 → 1.1.229
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/form-component.umd.js +94 -1
- package/package.json +1 -1
|
@@ -138865,7 +138865,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
|
|
|
138865
138865
|
/***/ ((module) => {
|
|
138866
138866
|
|
|
138867
138867
|
"use strict";
|
|
138868
|
-
module.exports = {"i8":"1.1.
|
|
138868
|
+
module.exports = {"i8":"1.1.229"};
|
|
138869
138869
|
|
|
138870
138870
|
/***/ })
|
|
138871
138871
|
|
|
@@ -148049,6 +148049,97 @@ const watermark = __webpack_require__(2206);
|
|
|
148049
148049
|
};
|
|
148050
148050
|
}
|
|
148051
148051
|
});
|
|
148052
|
+
;// CONCATENATED MODULE: ./src/utils/checkCas/index.js
|
|
148053
|
+
|
|
148054
|
+
|
|
148055
|
+
|
|
148056
|
+
function checkCas_extractDomainInfo(url) {
|
|
148057
|
+
try {
|
|
148058
|
+
// 解析URL
|
|
148059
|
+
const parsedUrl = new URL(url);
|
|
148060
|
+
|
|
148061
|
+
// 获取协议,主机名和端口号
|
|
148062
|
+
const protocol = parsedUrl.protocol;
|
|
148063
|
+
const hostname = parsedUrl.hostname;
|
|
148064
|
+
const port = parsedUrl.port;
|
|
148065
|
+
|
|
148066
|
+
// 格式化输出,包括协议,主机名和端口号(如果有)
|
|
148067
|
+
return `${protocol}//${hostname}${port ? `:${port}` : ''}`;
|
|
148068
|
+
} catch (e) {
|
|
148069
|
+
console.error("Invalid URL:", e);
|
|
148070
|
+
return null;
|
|
148071
|
+
}
|
|
148072
|
+
}
|
|
148073
|
+
function checkCas_compareUrls(url1, url2) {
|
|
148074
|
+
const domainInfo1 = checkCas_extractDomainInfo(url1);
|
|
148075
|
+
const domainInfo2 = checkCas_extractDomainInfo(url2);
|
|
148076
|
+
|
|
148077
|
+
// 比较提取的URL信息
|
|
148078
|
+
return domainInfo1 === domainInfo2;
|
|
148079
|
+
}
|
|
148080
|
+
function extractDomainInfoSubdomain(url) {
|
|
148081
|
+
try {
|
|
148082
|
+
// 解析URL
|
|
148083
|
+
const parsedUrl = new URL(url);
|
|
148084
|
+
|
|
148085
|
+
// 获取主机名和端口号
|
|
148086
|
+
const protocol = parsedUrl.protocol; // 提取协议
|
|
148087
|
+
const hostname = parsedUrl.hostname;
|
|
148088
|
+
const port = parsedUrl.port;
|
|
148089
|
+
|
|
148090
|
+
// 分割主机名以提取顶级域名和次一级域名
|
|
148091
|
+
const domainParts = hostname.split('.');
|
|
148092
|
+
const topLevelDomain = domainParts.slice(-2).join('.');
|
|
148093
|
+
|
|
148094
|
+
// 返回协议,顶级域名和次一级域名,以及端口号(如果存在)
|
|
148095
|
+
return `${protocol}//${topLevelDomain}${port ? `:${port}` : ''}`;
|
|
148096
|
+
} catch (e) {
|
|
148097
|
+
console.error("Invalid URL:", e);
|
|
148098
|
+
return null;
|
|
148099
|
+
}
|
|
148100
|
+
}
|
|
148101
|
+
function compareUrlsSubdomain(url1, url2) {
|
|
148102
|
+
const domainInfo1 = extractDomainInfoSubdomain(url1);
|
|
148103
|
+
const domainInfo2 = extractDomainInfoSubdomain(url2);
|
|
148104
|
+
|
|
148105
|
+
// 比较提取的顶级域名和次一级域名
|
|
148106
|
+
return domainInfo1 === domainInfo2;
|
|
148107
|
+
}
|
|
148108
|
+
;// CONCATENATED MODULE: ./src/utils/checkSsoStatusV2.js
|
|
148109
|
+
|
|
148110
|
+
|
|
148111
|
+
function useSsoStatusV2(options) {
|
|
148112
|
+
const {
|
|
148113
|
+
casUrl,
|
|
148114
|
+
casCheckUrl,
|
|
148115
|
+
refreshTicket,
|
|
148116
|
+
logout
|
|
148117
|
+
} = options;
|
|
148118
|
+
return {
|
|
148119
|
+
check() {
|
|
148120
|
+
if (!compareUrlsSubdomain(casUrl, casCheckUrl)) return;
|
|
148121
|
+
// 创建iframe元素
|
|
148122
|
+
const iframe = document.createElement('iframe');
|
|
148123
|
+
iframe.src = casUrl + '/login?service=' + casCheckUrl;
|
|
148124
|
+
iframe.width = '0px';
|
|
148125
|
+
iframe.height = '0px';
|
|
148126
|
+
iframe.onload = () => {
|
|
148127
|
+
try {
|
|
148128
|
+
debugger;
|
|
148129
|
+
const document = iframe.contentWindow.document;
|
|
148130
|
+
console.log("iframe onload", iframe.contentWindow, iframe);
|
|
148131
|
+
const ticket = (0,utils_util/* getQueryParam */.Ph)('ticket', iframe.contentWindow.location.href);
|
|
148132
|
+
return refreshTicket(ticket); // 重新获取用户信息
|
|
148133
|
+
} catch (e) {
|
|
148134
|
+
return logout(); // 退出登录
|
|
148135
|
+
} finally {
|
|
148136
|
+
document.body.removeChild(iframe);
|
|
148137
|
+
}
|
|
148138
|
+
};
|
|
148139
|
+
document.body.appendChild(iframe);
|
|
148140
|
+
}
|
|
148141
|
+
};
|
|
148142
|
+
}
|
|
148052
148143
|
;// CONCATENATED MODULE: ./src/main.js
|
|
148053
148144
|
|
|
148054
148145
|
|
|
@@ -148067,6 +148158,7 @@ console.log("version:", version);
|
|
|
148067
148158
|
|
|
148068
148159
|
|
|
148069
148160
|
|
|
148161
|
+
|
|
148070
148162
|
const main_components = [layoutForPaper, Container, layoutItem["default"], FilePreview/* default */.Z];
|
|
148071
148163
|
const install = function (Vue, opts = {}, router = undefined) {
|
|
148072
148164
|
__webpack_require__.g.Vue = Vue;
|
|
@@ -148095,6 +148187,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
148095
148187
|
...components/* default */.Z.componentList,
|
|
148096
148188
|
MessageBox: components_MessageBox,
|
|
148097
148189
|
useSsoStatus: useSsoStatus,
|
|
148190
|
+
useSsoStatusV2: useSsoStatusV2,
|
|
148098
148191
|
encrypt: encryption
|
|
148099
148192
|
});
|
|
148100
148193
|
;// CONCATENATED MODULE: ./node_modules/_@vue_cli-service@5.0.8@@vue/cli-service/lib/commands/build/entry-lib.js
|