⬆️ upgrade dependencies and optimize the image display list

This commit is contained in:
2025-02-10 01:08:28 +08:00
parent b4ef5a4b51
commit 76d72182f9
12 changed files with 379 additions and 158 deletions

View File

@@ -3,10 +3,12 @@ import localforage from 'localforage';
interface UploadPredictResult {
isAnime: boolean;
objectArray: string[] | unknown[];
landscape: 'building' | 'forest' | 'glacier' | 'mountain' | 'sea' | 'street' | 'none';
landscape: 'building' | 'forest' | 'glacier' | 'mountain' | 'sea' | 'street' | null;
isScreenshot: boolean;
topCategory: string | undefined;
exif: object | null;
exif: object | "";
width: number | null;
height: number | null;
}
@@ -18,10 +20,12 @@ export const useUploadStore = defineStore(
const predictResult = reactive<UploadPredictResult>({
isAnime: false,
objectArray: [],
landscape: 'none',
landscape: null,
isScreenshot: false,
topCategory: '',
exif: {}
exif: "",
width: null,
height: null,
});
/**
@@ -37,10 +41,10 @@ export const useUploadStore = defineStore(
function clearPredictResult() {
predictResult.isAnime = false;
predictResult.objectArray = [];
predictResult.landscape = 'none';
predictResult.landscape = null;
predictResult.isScreenshot = false;
predictResult.topCategory = '';
predictResult.exif = {};
predictResult.exif = "";
}