优化网站导航模块

This commit is contained in:
2024-08-23 22:28:24 +08:00
parent 1d81fa9270
commit 13832d9de0
964 changed files with 90774 additions and 31362 deletions
+7 -5
View File
@@ -12,6 +12,7 @@ import CryptoJS from 'crypto-js';
// import { useTenantStore } from '@/store/modules/tenant';
// import { listMerchantAccount } from '@/api/shop/merchantAccount';
import { useRouter } from 'vue-router';
import { getSiteDomain } from "@/utils/domain";
type Events = {
message: ChatMessage;
@@ -77,12 +78,13 @@ export function openNew(url: string) {
* @constructor
*/
export function openPreview(url: string) {
if (url.slice(0, 4) == 'http') {
return window.open(url);
}
window.open(getDomainPath(url));
console.log(`${getSiteDomain()}${url}`);
return window.open(`${getSiteDomain()}${url}`);
// if (url.slice(0, 4) == 'http') {
// return window.open(url);
// }
// window.open(getDomainPath(url));
}
/**
* 获取网站域名
* @param path