From 79f0ecb2b4295077811f637ce69451d05112c4a5 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Fri, 14 Nov 2025 10:07:21 +0800 Subject: [PATCH 1/5] =?UTF-8?q?detail=20=E5=8F=AF=E4=BB=A5=E6=8A=8A?= =?UTF-8?q?=E7=B3=BB=E7=BB=9Fsketch=E6=B7=BB=E5=8A=A0=E5=88=B0=E4=B8=AA?= =?UTF-8?q?=E4=BA=BAlibarry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Detail/DesignDetail.vue | 8 ++- src/component/Detail/detailLeft/index.vue | 7 ++- src/component/Detail/detailLeft/sketch.vue | 11 ++-- src/component/Detail/model/index.vue | 6 +-- src/component/Detail/model/modelNav.vue | 53 +++++++++++++++---- .../design/collection/ColorboardUpload.vue | 2 +- src/tool/https.js | 1 + 7 files changed, 66 insertions(+), 22 deletions(-) diff --git a/src/component/Detail/DesignDetail.vue b/src/component/Detail/DesignDetail.vue index f6ab8d38..d54016b6 100644 --- a/src/component/Detail/DesignDetail.vue +++ b/src/component/Detail/DesignDetail.vue @@ -50,7 +50,7 @@
- +
@@ -67,6 +67,7 @@ @revocation="revocation" @oppositeRevocation="oppositeRevocation" @modelOnLoad="modelOnLoad" + @sketchSysToLibrary="sketchSysToLibrary" >
@@ -136,6 +137,7 @@ export default defineComponent({ model:null, canvasBox, detailRight, + detailLeft:null as any, }) const userDetail = computed(()=>{ return store.state.UserHabit.userDetail @@ -491,6 +493,9 @@ export default defineComponent({ store.commit('DesignDetail/setDesignDetail',detailData.designDetail) },1000) } + const sketchSysToLibrary = ()=>{//系统sketch添加到library更新library + detailDom.detailLeft.sketchSysToLibrary() + } onMounted(()=>{ window.addEventListener('resize', handleResize); }) @@ -515,6 +520,7 @@ export default defineComponent({ detailEdit, canvasReload, modelOnLoad, + sketchSysToLibrary, } }, diff --git a/src/component/Detail/detailLeft/index.vue b/src/component/Detail/detailLeft/index.vue index 4484d85a..37c64ef5 100644 --- a/src/component/Detail/detailLeft/index.vue +++ b/src/component/Detail/detailLeft/index.vue @@ -1,6 +1,6 @@