新增:批量删除菜单功能和复制菜单功能
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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:';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user