mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
feat: 新增预览接口数据动态获取功能
This commit is contained in:
@@ -128,6 +128,10 @@ export const openGiteeSourceCode = () => {
|
||||
openNewWindow(giteeSourceCodePath)
|
||||
}
|
||||
|
||||
export const isPreview = () => {
|
||||
return document.location.hash.includes('preview')
|
||||
}
|
||||
|
||||
/**
|
||||
* * 获取当前路由下的参数
|
||||
* @returns object
|
||||
|
||||
@@ -4,6 +4,14 @@ import screenfull from 'screenfull'
|
||||
import throttle from 'lodash/throttle'
|
||||
import Image_404 from '../assets/images/exception/image-404.png'
|
||||
|
||||
/**
|
||||
* * 判断是否是开发环境
|
||||
* @return { Boolean }
|
||||
*/
|
||||
export const isDev = () => {
|
||||
return import.meta.env.DEV
|
||||
}
|
||||
|
||||
/**
|
||||
* * 生成一个不重复的ID
|
||||
* @param { Number } randomLength
|
||||
|
||||
Reference in New Issue
Block a user