mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-11 18:10:49 +08:00
keep sort in sync
This commit is contained in:
@@ -253,6 +253,7 @@ function stopDrag() {
|
||||
<div class="mx-auto" :loading="loading > 0">
|
||||
<div v-if="item">
|
||||
<FileToolbar
|
||||
:sort="sort"
|
||||
:item="item"
|
||||
:itemstack="itemstack"
|
||||
:storages="storagesArray"
|
||||
|
||||
@@ -26,6 +26,10 @@ const inProps = defineProps({
|
||||
type: Function,
|
||||
required: true,
|
||||
},
|
||||
sort: {
|
||||
type: String,
|
||||
default: 'name',
|
||||
},
|
||||
})
|
||||
|
||||
// 对外事件
|
||||
@@ -38,7 +42,7 @@ const newFolderPopper = ref(false)
|
||||
const newFolderName = ref('')
|
||||
|
||||
// 排序方式
|
||||
const sort = ref('name')
|
||||
const sort = ref(inProps.sort)
|
||||
|
||||
// 调整排序方式
|
||||
function changeSort() {
|
||||
|
||||
Reference in New Issue
Block a user