feat: 新增预览接口数据动态获取功能

This commit is contained in:
MTrun
2022-03-24 14:19:07 +08:00
parent 0d1c24c536
commit 66373a427b
16 changed files with 82 additions and 33 deletions
+4
View File
@@ -128,6 +128,10 @@ export const openGiteeSourceCode = () => {
openNewWindow(giteeSourceCodePath)
}
export const isPreview = () => {
return document.location.hash.includes('preview')
}
/**
* * 获取当前路由下的参数
* @returns object