新增:批量删除菜单功能和复制菜单功能

This commit is contained in:
2024-09-01 01:59:07 +08:00
parent 41ad9a474e
commit bf43bdbab4
22 changed files with 1314 additions and 87 deletions
+1
View File
@@ -97,6 +97,7 @@ export function openSpmUrl(path: string, d?: any, id = 0): void {
// 跳转页面
url.value = `${domain}${path}${spm.value}${token.value}`;
console.log(url.value);
window.open(url.value);
}
+6
View File
@@ -120,3 +120,9 @@ export function getSiteDomain(): string {
}
return `${localStorage.getItem('Domain')}`;
}
// 检查 URL 是否为 HTTPS
export const checkIfHttps = (text: string) => {
const url = new URL(text);
return url.protocol === 'https:';
};