|
@@ -1,7 +1,9 @@
|
|
|
import { ref, watch } from 'vue';
|
|
|
import { defineStore } from 'pinia';
|
|
|
import { addPoint, addPolyLine, addTrajectory, playTrajectory } from '@/utils/map/mapOperation.js';
|
|
|
+import { useMapStore } from './mapStore';
|
|
|
export const useDrawPointStore = defineStore('drawPointStore', () => {
|
|
|
+ const mapStore = useMapStore();
|
|
|
//当前患者绘制点位列表
|
|
|
const currentDrawPointList = ref([]);
|
|
|
|
|
@@ -50,7 +52,7 @@ export const useDrawPointStore = defineStore('drawPointStore', () => {
|
|
|
addPoint(pointList, 'drawPoint');
|
|
|
addTrajectory(pointList, 'drawLine');
|
|
|
setTimeout(() => {
|
|
|
- playTrajectory('drawLine', 160);
|
|
|
+ playTrajectory('drawLine', 160, mapStore.mapTheme == 'light' ? 'green' : 'red');
|
|
|
}, 1000);
|
|
|
}
|
|
|
},
|