detail list development

This commit is contained in:
2025-02-13 18:19:39 +08:00
parent 76d72182f9
commit d5fd626242
17 changed files with 1048 additions and 317 deletions

View File

@@ -2,13 +2,14 @@ import localforage from 'localforage';
interface UploadPredictResult {
isAnime: boolean;
objectArray: string[] | unknown[];
tagName: string | null;
landscape: 'building' | 'forest' | 'glacier' | 'mountain' | 'sea' | 'street' | null;
isScreenshot: boolean;
topCategory: string | undefined;
exif: object | "";
width: number | null;
height: number | null;
latitude: number | null;
longitude: number | null;
}
@@ -19,13 +20,14 @@ export const useUploadStore = defineStore(
const predictResult = reactive<UploadPredictResult>({
isAnime: false,
objectArray: [],
tagName: null,
landscape: null,
isScreenshot: false,
topCategory: '',
exif: "",
width: null,
height: null,
latitude: null,
longitude: null,
});
/**
@@ -40,11 +42,13 @@ export const useUploadStore = defineStore(
*/
function clearPredictResult() {
predictResult.isAnime = false;
predictResult.objectArray = [];
predictResult.tagName = null;
predictResult.landscape = null;
predictResult.isScreenshot = false;
predictResult.topCategory = '';
predictResult.exif = "";
predictResult.width = null;
predictResult.height = null;
predictResult.latitude = null;
}