fix: 修改自动复制粘贴的问题

This commit is contained in:
奔跑的面条
2022-06-03 18:53:37 +08:00
parent 88dbbe03ea
commit 88516d9491
2 changed files with 27 additions and 22 deletions
+13 -2
View File
@@ -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
}
}
}
/**
* * 预览地址
* @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
}