修复网站导航链接

This commit is contained in:
2024-09-22 01:06:59 +08:00
parent ed4b4afda0
commit 228cacdf2a
22 changed files with 978 additions and 720 deletions

View File

@@ -53,13 +53,7 @@
<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(`${record.path}`, record, record.navigationId)"
class="ele-text-placeholder cursor-pointer"
>{{ record.path }}</span
>
@@ -207,10 +201,12 @@
import { openSpmUrl } from '@/utils/common';
import { getSiteInfo } from '@/api/layout';
import { CmsDesign } from '@/api/cms/cmsDesign/model';
import router from '@/router';
import { getSiteDomain } from '@/utils/domain';
// 表格实例
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
// 网站项目域名
const domain = ref(getSiteDomain());
// 表格列配置
const columns = ref<ColumnItem[]>([
@@ -305,7 +301,6 @@
const searchText = ref('');
const position = ref(1);
const tenantId = ref<number>();
const domain = ref<string>();
getSiteInfo().then((data) => {
tenantId.value = data.tenantId;