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