|
@@ -1,7 +1,6 @@
|
|
|
import { defineStore } from 'pinia'
|
|
|
import { sessionStorage } from '@/plugins/storage'
|
|
|
import useFetch from '@/hooks/useFetch'
|
|
|
-import { useRoute } from 'vue-router'
|
|
|
|
|
|
import type { ExtractApiResponse } from '@/api/api'
|
|
|
interface MainStoreState {
|
|
@@ -37,7 +36,6 @@ interface MainStoreActions {
|
|
|
setRowNextBottomDialogStatus: (bool: boolean) => void
|
|
|
setMarkerPausedLimit: (time: number) => void
|
|
|
}
|
|
|
-
|
|
|
const useMainStore = defineStore<'main', MainStoreState, Record<string, any>, MainStoreActions>('main', {
|
|
|
state() {
|
|
|
return {
|
|
@@ -112,8 +110,7 @@ const useMainStore = defineStore<'main', MainStoreState, Record<string, any>, Ma
|
|
|
},
|
|
|
setNewMsgs(msgData) {
|
|
|
this.newMsgs = msgData
|
|
|
- const route = useRoute()
|
|
|
- if (this.markerPausedLimit == 0 && route.name !== 'MarkingMark') {
|
|
|
+ if (this.markerPausedLimit == 0 && location.pathname !== '/marking/mark') {
|
|
|
this.setMarkerPausedLimit(msgData.markerPausedLimit || 0)
|
|
|
}
|
|
|
},
|