diff --git a/src/utils/router.ts b/src/utils/router.ts
index a748830a..5a117357 100644
--- a/src/utils/router.ts
+++ b/src/utils/router.ts
@@ -1,6 +1,6 @@
import { useRoute } from 'vue-router'
import { ResultEnum, RequestHttpHeaderEnum } from '@/enums/httpEnum'
-import { ErrorPageNameMap, PageEnum } from '@/enums/pageEnum'
+import { ErrorPageNameMap, PageEnum, PreviewEnum } from '@/enums/pageEnum'
import { docPath, giteeSourceCodePath } from '@/settings/pathConst'
import { SystemStoreEnum, SystemStoreUserInfoEnum } from '@/store/modules/systemStore/systemStore.d'
import { StorageEnum } from '@/enums/storageEnum'
@@ -199,4 +199,15 @@ export const loginCheck = () => {
} catch (error) {
return false
}
-}
\ No newline at end of file
+}
+
+/**
+ * * 预览地址
+ * @returns
+ */
+ export const previewPath = () => {
+ const { origin, pathname } = document.location
+ const path = fetchPathByName(PreviewEnum.CHART_PREVIEW_NAME, 'href')
+ const previewPath = `${origin}${pathname}${path}/${fetchRouteParamsLocation()}`
+ return previewPath
+}
\ No newline at end of file
diff --git a/src/views/chart/ContentHeader/headerRightBtn/index.vue b/src/views/chart/ContentHeader/headerRightBtn/index.vue
index ef56ac28..600c11e3 100644
--- a/src/views/chart/ContentHeader/headerRightBtn/index.vue
+++ b/src/views/chart/ContentHeader/headerRightBtn/index.vue
@@ -31,7 +31,7 @@
{{ previewPath() }}
-
+
复制地址
@@ -52,6 +52,7 @@