绘制完毕选中图形状态消失
This commit is contained in:
parent
70264b3a51
commit
81340970ae
@ -23,7 +23,7 @@ export class SignalDraw extends GraphicDrawAssistant<
|
|||||||
app,
|
app,
|
||||||
new SignalTemplate(),
|
new SignalTemplate(),
|
||||||
createData,
|
createData,
|
||||||
'svguse:../drawIcon.svg#icon-signal',
|
'svguse: /drawIcon.svg#icon-signal',
|
||||||
'信号机Signal'
|
'信号机Signal'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ import {
|
|||||||
} from 'src/drawApp';
|
} from 'src/drawApp';
|
||||||
import { JlDrawApp } from 'src/jl-graphic';
|
import { JlDrawApp } from 'src/jl-graphic';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
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 { useRoute, useRouter } from 'vue-router';
|
||||||
import { errorNotify, successNotify } from 'src/utils/CommonNotify';
|
import { errorNotify, successNotify } from 'src/utils/CommonNotify';
|
||||||
import { saveAsDraft } from 'src/api/DraftApi';
|
import { saveAsDraft } from 'src/api/DraftApi';
|
||||||
@ -180,6 +180,15 @@ const router = useRouter();
|
|||||||
|
|
||||||
const drawStore = useDrawStore();
|
const drawStore = useDrawStore();
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => drawStore.drawMode,
|
||||||
|
(drawMode) => {
|
||||||
|
if (!drawMode) {
|
||||||
|
selectUtil.value = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
const leftDrawerOpen = ref(false);
|
const leftDrawerOpen = ref(false);
|
||||||
const rightDrawerOpen = ref(false);
|
const rightDrawerOpen = ref(false);
|
||||||
function toggleRightDrawer() {
|
function toggleRightDrawer() {
|
||||||
|
Loading…
Reference in New Issue
Block a user