优化:把网站设置、参数配置、域名管理放到概览页面

This commit is contained in:
2024-09-04 00:25:55 +08:00
parent aa85c133e3
commit 4b2c4bd9e6
9 changed files with 176 additions and 89 deletions
+6 -2
View File
@@ -70,6 +70,7 @@ export function openUrl(url: string, params?: any): void {
*/
export function openSpmUrl(path: string, d?: any, id = 0): void {
const domain = getSiteDomain();
console.log(domain);
const spm = ref<string>('');
const token = ref<string>();
const url = ref<string>();
@@ -97,8 +98,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);
window.open(`https://${url.value}`);
}
/**
@@ -152,6 +152,10 @@ export function navTo(url: string): void {
window.location.href = url;
}
export function push(path: string) {
router.push(path);
}
// 手机号脱敏
export function getMobile(tel: string) {
const reg = /^(\d{3})\d{4}(\d{4})$/;