优化网站导航模块

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
+6 -2
View File
@@ -52,7 +52,9 @@
</template>
<template v-if="column.key === 'action'">
<a-space>
<a-button type="primary" ghost @click="openUrl(`${record.prefix}${record.adminUrl}`)">进入后台</a-button>
<a @click="openUrl(`${record.prefix}${record.domain}`)">首页</a>
<a-divider type="vertical" />
<a @click="openUrl(record.adminUrl)">后台</a>
</a-space>
</template>
</template>
@@ -84,7 +86,8 @@
updateWebsite
} from '@/api/cms/website';
import type { Website, WebsiteParam } from '@/api/cms/website/model';
import { openUrl } from '@/utils/common';
import { openPreview, openUrl } from '@/utils/common';
import { getSiteDomain } from '@/utils/domain';
// 表格实例
const tableRef = ref<InstanceType<typeof EleProTable> | null>(null);
@@ -99,6 +102,7 @@
const showMove = ref(false);
// 加载状态
const loading = ref(true);
const domain = getSiteDomain();
// 表格数据源
const datasource: DatasourceFunction = ({