页面调整

This commit is contained in:
X1627315083
2025-07-19 14:04:48 +08:00
parent 22ee9c6cf1
commit 4b694236ee
161 changed files with 2934 additions and 3979 deletions

View File

@@ -23,6 +23,7 @@ const getUploadUrl = () => {
return url
}
const getMinioUrl = (url) => {
if (!isValidMinioUrl(url)) return '';
if(isUrl(url)){
const { pathname } = new URL(url);
const result = pathname.slice(1);
@@ -30,6 +31,9 @@ const getMinioUrl = (url) => {
}
return ''
}
function isValidMinioUrl(url) {
return url.includes('www.minio-api.aida.com.hk'); // 关键特征检测
}
function isUrl(str) {
try {
new URL(str);