mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
refactor: 桌面版隐藏分享功能
This commit is contained in:
parent
af163fa25e
commit
6e77aea4c1
@ -6,6 +6,7 @@ import type { Placement } from 'element-plus-secondary'
|
||||
import { ref, PropType, computed } from 'vue'
|
||||
import ShareHandler from '@/views/share/share/ShareHandler.vue'
|
||||
import { useShareStoreWithOut } from '@/store/modules/share'
|
||||
import { isDesktop } from '@/utils/ModelUtil'
|
||||
const shareStore = useShareStoreWithOut()
|
||||
|
||||
export interface Menu {
|
||||
@ -38,7 +39,7 @@ const props = defineProps({
|
||||
})
|
||||
|
||||
const shareDisable = computed(() => {
|
||||
return shareStore.getShareDisable
|
||||
return shareStore.getShareDisable || isDesktop()
|
||||
})
|
||||
|
||||
const shareComponent = ref(null)
|
||||
|
Loading…
Reference in New Issue
Block a user