From 40978fb393e18790f484e448d7ff80402c1ffb3f Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 11 Jun 2024 16:42:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=9D=83=E9=99=90=E4=B8=AD=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E5=9B=BE=E8=A1=A8=E5=AF=BC=E5=87=BA=E7=9A=84?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=20#9836?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/visualization/ComponentEditBar.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/components/visualization/ComponentEditBar.vue b/core/core-frontend/src/components/visualization/ComponentEditBar.vue index a1362f1f19..58de99e82a 100644 --- a/core/core-frontend/src/components/visualization/ComponentEditBar.vue +++ b/core/core-frontend/src/components/visualization/ComponentEditBar.vue @@ -131,7 +131,7 @@ @@ -174,6 +174,7 @@ const dvMainStore = dvMainStoreWithOut() const snapshotStore = snapshotStoreWithOut() const copyStore = copyStoreWithOut() const customTabsSortRef = ref(null) +const authShow = computed(() => dvInfo.value.weight > 3) const emits = defineEmits([ 'userViewEnlargeOpen', 'closePreview', @@ -264,8 +265,15 @@ const props = defineProps({ }) const { element, index, showPosition, canvasId } = toRefs(props) -const { batchOptStatus, pcMatrixCount, curComponent, componentData, canvasViewInfo, mobileInPc } = - storeToRefs(dvMainStore) +const { + batchOptStatus, + pcMatrixCount, + curComponent, + componentData, + canvasViewInfo, + mobileInPc, + dvInfo +} = storeToRefs(dvMainStore) const state = reactive({ systemOS: 'Mac',