优化网站导航模块
This commit is contained in:
+7
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user