|
@@ -6,7 +6,7 @@ import {fixPoints} from "@/store/fixPoint";
|
|
|
import {photos} from "@/store/photos";
|
|
|
import {accidentPhotos} from "@/store/accidentPhotos";
|
|
|
import {roadPhotos} from "@/store/roadPhotos";
|
|
|
-import {debounce, getId} from '@/utils'
|
|
|
+import {blobToBase64, debounce, getId} from '@/utils'
|
|
|
import {watch} from "vue";
|
|
|
import {params} from "@/hook";
|
|
|
import router, {writeRouteName} from "@/router";
|
|
@@ -34,7 +34,8 @@ export const api = import.meta.env.DEV && !global.android
|
|
|
window.open(URL.createObjectURL(file))
|
|
|
},
|
|
|
async getFile(url) {
|
|
|
- return baseURL + url
|
|
|
+ const data = await axios.get(url,{responseType:'blob'})
|
|
|
+ return blobToBase64(data.data)
|
|
|
},
|
|
|
async closePage() {
|
|
|
return router.push({ name: writeRouteName.scene })
|