mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 22:41:06 +08:00
refactor: 桌面版隐藏分享功能
This commit is contained in:
@@ -20,6 +20,7 @@ import { useEmitt } from '@/hooks/web/useEmitt'
|
||||
import { useShareStoreWithOut } from '@/store/modules/share'
|
||||
import { exportPermission } from '@/utils/utils'
|
||||
import { useCache } from '@/hooks/web/useCache'
|
||||
import { isDesktop } from '@/utils/ModelUtil'
|
||||
|
||||
const shareStore = useShareStoreWithOut()
|
||||
const { wsCache } = useCache('localStorage')
|
||||
@@ -39,7 +40,7 @@ const preview = () => {
|
||||
}
|
||||
const isDataEaseBi = computed(() => appStore.getIsDataEaseBi)
|
||||
const isIframe = computed(() => appStore.getIsIframe)
|
||||
const shareDisable = computed(() => shareStore.getShareDisable)
|
||||
const shareDisable = computed(() => shareStore.getShareDisable || isDesktop())
|
||||
const exportPermissions = computed(() =>
|
||||
exportPermission(dvInfo.value['weight'], dvInfo.value['ext'])
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user