|
@@ -46,14 +46,14 @@ import UiIcon from "@/components/base/components/icon/index.vue";
|
|
|
import UiButton from "@/components/base/components/button/index.vue";
|
|
|
import {Mode} from './menus'
|
|
|
import {changeStore, drawRef, graphicState} from '@/hook/useGraphic'
|
|
|
-import {computed, watch, watchEffect} from "vue";
|
|
|
+import {computed, watchEffect} from "vue";
|
|
|
import {router, writeRouteName} from '@/router'
|
|
|
import {AccidentPhoto, accidentPhotos, types} from '@/store/accidentPhotos'
|
|
|
import {useData} from './data'
|
|
|
import UiInput from "@/components/base/components/input/index.vue";
|
|
|
import {roadPhotos} from "@/store/roadPhotos";
|
|
|
import {back, uploadImage} from '@/store/sync'
|
|
|
-import {genUseLoading, useLoading} from "@/hook";
|
|
|
+import {genUseLoading} from "@/hook";
|
|
|
import {dataService} from "@/graphic/Service/DataService";
|
|
|
|
|
|
const data = useData()
|
|
@@ -73,7 +73,8 @@ watchEffect(() => {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-const menus = computed<{disable?: boolean, text: string, onClick: () => void}[]>(() => {
|
|
|
+type Menu = {disable?: boolean, text: string, icon: string, onClick: () => void}
|
|
|
+const menus = computed<Menu[]>(() => {
|
|
|
const menus = [
|
|
|
{
|
|
|
text: "",
|