mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
perf: 完善首页预览功能
This commit is contained in:
+2
-2
@@ -205,9 +205,9 @@ export const loginCheck = () => {
|
||||
* * 预览地址
|
||||
* @returns
|
||||
*/
|
||||
export const previewPath = () => {
|
||||
export const previewPath = (id?: string | number) => {
|
||||
const { origin, pathname } = document.location
|
||||
const path = fetchPathByName(PreviewEnum.CHART_PREVIEW_NAME, 'href')
|
||||
const previewPath = `${origin}${pathname}${path}/${fetchRouteParamsLocation()}`
|
||||
const previewPath = `${origin}${pathname}${path}/${id || fetchRouteParamsLocation()}`
|
||||
return previewPath
|
||||
}
|
||||
Reference in New Issue
Block a user