绘制完毕选中图形状态消失

This commit is contained in:
fan 2023-06-13 11:16:32 +08:00
parent 70264b3a51
commit 81340970ae
2 changed files with 11 additions and 2 deletions

View File

@ -23,7 +23,7 @@ export class SignalDraw extends GraphicDrawAssistant<
app,
new SignalTemplate(),
createData,
'svguse:../drawIcon.svg#icon-signal',
'svguse: /drawIcon.svg#icon-signal',
'信号机Signal'
);

View File

@ -169,7 +169,7 @@ import {
} from 'src/drawApp';
import { JlDrawApp } from 'src/jl-graphic';
import { useDrawStore } from 'src/stores/draw-store';
import { onMounted, onUnmounted, reactive, ref } from 'vue';
import { onMounted, onUnmounted, reactive, ref, watch } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { errorNotify, successNotify } from 'src/utils/CommonNotify';
import { saveAsDraft } from 'src/api/DraftApi';
@ -180,6 +180,15 @@ const router = useRouter();
const drawStore = useDrawStore();
watch(
() => drawStore.drawMode,
(drawMode) => {
if (!drawMode) {
selectUtil.value = '';
}
}
);
const leftDrawerOpen = ref(false);
const rightDrawerOpen = ref(false);
function toggleRightDrawer() {