优化:把网站设置、参数配置、域名管理放到概览页面
This commit is contained in:
+6
-2
@@ -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})$/;
|
||||
|
||||
Reference in New Issue
Block a user