This commit is contained in:
iVampireSP.com 2023-12-07 14:39:34 +08:00
parent bc0db5a5be
commit d6fcf82973
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 14 additions and 3 deletions

View File

@ -2,4 +2,13 @@
<div>a</div> <div>a</div>
</template> </template>
<script setup lang="ts"></script> <script setup>
import router from '@/router';
const libraryId = router.currentRoute.value.params.LibraryId
console.log(libraryId)
</script>

View File

@ -19,7 +19,7 @@
<v-dialog v-model="show_dialog" activator="parent" width="auto"> <v-dialog v-model="show_dialog" activator="parent" width="auto">
<v-card> <v-card>
<v-card-text> 确认删除所选项? </v-card-text> <v-card-text v-text="is_deleting ? '正在为你准备新项目。' : '确认删除所选项?'"></v-card-text>
<v-card-actions> <v-card-actions>
<v-btn <v-btn
color="primary" color="primary"
@ -73,7 +73,6 @@
:length="libraries.Total" :length="libraries.Total"
:disabled="loading" :disabled="loading"
@update:model-value="load" @update:model-value="load"
next-icon
></v-pagination> ></v-pagination>
</v-container> </v-container>
</v-col> </v-col>
@ -177,6 +176,9 @@ function deleteSelected() {
if (page.value == libraries.value.Page) { if (page.value == libraries.value.Page) {
page.value = page.value - 1; page.value = page.value - 1;
} }
if (page.value == 0) {
page.value = 1
}
load(false); load(false);