mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix storage save
This commit is contained in:
@@ -201,14 +201,6 @@ function removeStorage(storage: StorageConf) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新存储
|
|
||||||
async function updatedStorage(storage: StorageConf) {
|
|
||||||
const index = storages.value.indexOf(storage)
|
|
||||||
if (index > -1) {
|
|
||||||
storages.value[index] = storage
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 保存设置
|
// 保存设置
|
||||||
async function saveSystemSettings(value: any) {
|
async function saveSystemSettings(value: any) {
|
||||||
try {
|
try {
|
||||||
@@ -247,7 +239,7 @@ onMounted(() => {
|
|||||||
:component-data="{ 'class': 'grid gap-3 grid-app-card' }"
|
:component-data="{ 'class': 'grid gap-3 grid-app-card' }"
|
||||||
>
|
>
|
||||||
<template #item="{ element }">
|
<template #item="{ element }">
|
||||||
<StorageCard :storage="element" @close="removeStorage(element)" @done="updatedStorage" />
|
<StorageCard :storage="element" @close="removeStorage(element)" @done="loadStorages" />
|
||||||
</template>
|
</template>
|
||||||
</draggable>
|
</draggable>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
|
|||||||
Reference in New Issue
Block a user