♻️ clean up useless components / upgrade dependencies
This commit is contained in:
@@ -57,6 +57,7 @@ import Vue3JustifiedLayout from "vue3-justified-layout";
|
||||
import 'vue3-justified-layout/dist/style.css';
|
||||
import {getFaceSamplesDetailList} from "@/api/storage";
|
||||
import ImageToolbar from "@/views/Photograph/ImageToolbar/ImageToolbar.vue";
|
||||
import useStore from "@/store";
|
||||
|
||||
|
||||
const selected = ref<(string | number)[]>([]);
|
||||
@@ -64,12 +65,14 @@ const albumList = ref<any[]>([]);
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const upload = useStore().upload;
|
||||
|
||||
const options = reactive({
|
||||
targetRowHeight: 200 // 高度
|
||||
});
|
||||
|
||||
async function getAlbumList(id: number) {
|
||||
const res: any = await getFaceSamplesDetailList(id, "ali", "schisandra-album");
|
||||
const res: any = await getFaceSamplesDetailList(id, upload.storageSelected[0], upload.storageSelected[1]);
|
||||
if (res && res.code === 200) {
|
||||
albumList.value = res.data.records;
|
||||
}
|
||||
|
@@ -79,7 +79,7 @@
|
||||
size="small">
|
||||
添加名字
|
||||
</AButton>
|
||||
<AInput ref="addNameInput" v-model:value="addNameInputValue" v-show="item.showInput"
|
||||
<AInput v-model:value="addNameInputValue" v-show="item.showInput"
|
||||
@blur="hideAddNameInput(index)" size="small"
|
||||
:maxlength="10"
|
||||
@click.stop
|
||||
@@ -98,7 +98,7 @@
|
||||
size="small">
|
||||
{{ item.face_name }}
|
||||
</AButton>
|
||||
<AInput ref="addNameInput" v-model:value="addNameInputValue" autofocus v-show="item.showInput"
|
||||
<AInput v-model:value="addNameInputValue" autofocus v-show="item.showInput"
|
||||
@blur="hideAddNameInput(index)" size="small"
|
||||
:maxlength="10"
|
||||
:placeholder="item.face_name"
|
||||
@@ -122,8 +122,8 @@
|
||||
<script setup lang="ts">
|
||||
import {getFaceSamplesList, modifyFaceSampleName, modifyFaceTypeBatch} from "@/api/storage";
|
||||
|
||||
|
||||
const faceList = ref<any[]>([]);
|
||||
const addNameInput = ref<any>(null);
|
||||
const addNameInputValue = ref<string>('');
|
||||
const selecetedKey = ref<string>('0');
|
||||
const loading = ref<boolean>(false);
|
||||
|
Reference in New Issue
Block a user