修复网站导航链接
This commit is contained in:
@@ -53,7 +53,13 @@
|
||||
<span class="cursor-pointer" v-if="isDirectory(record)"></span>
|
||||
<span
|
||||
v-else
|
||||
@click="openSpmUrl(`https://${record.tenantId}.wsdns.cn${record.path}`, record, record.navigationId)"
|
||||
@click="
|
||||
openSpmUrl(
|
||||
`https://${domain}${record.path}`,
|
||||
record,
|
||||
record.navigationId
|
||||
)
|
||||
"
|
||||
class="ele-text-placeholder cursor-pointer"
|
||||
>{{ record.path }}</span
|
||||
>
|
||||
@@ -93,7 +99,13 @@
|
||||
}}</span>
|
||||
<span
|
||||
v-else
|
||||
@click="openSpmUrl(record.path, record, record.navigationId)"
|
||||
@click="
|
||||
openSpmUrl(
|
||||
`https://${domain}${record.path}`,
|
||||
record,
|
||||
record.navigationId
|
||||
)
|
||||
"
|
||||
class="cursor-pointer"
|
||||
>{{ record.title }}</span
|
||||
>
|
||||
@@ -195,7 +207,6 @@
|
||||
import { openSpmUrl } from '@/utils/common';
|
||||
import { getSiteInfo } from '@/api/layout';
|
||||
import { Design } from '@/api/cms/design/model';
|
||||
import router from '@/router';
|
||||
|
||||
// 表格实例
|
||||
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
|
||||
@@ -297,7 +308,12 @@
|
||||
|
||||
getSiteInfo().then((data) => {
|
||||
tenantId.value = data.tenantId;
|
||||
domain.value = data.domain;
|
||||
// 网站域名
|
||||
domain.value = `${data.websiteCode}.wsdns.cn`;
|
||||
if (data.domain != '') {
|
||||
domain.value = data.domain;
|
||||
}
|
||||
localStorage.setItem('Domain', `${domain.value}`);
|
||||
});
|
||||
|
||||
// 表格数据源
|
||||
|
||||
Reference in New Issue
Block a user