diff --git a/frontend/src/views/setting/tabs/backup.vue b/frontend/src/views/setting/tabs/backup.vue index 2f28750e5..1b82eee3d 100644 --- a/frontend/src/views/setting/tabs/backup.vue +++ b/frontend/src/views/setting/tabs/backup.vue @@ -63,7 +63,12 @@
- + { backupVisiable.value = true; }; +const changeType = async (val: string) => { + let itemType = val; + restForm(); + buckets.value = []; + form.type = itemType; +}; + const onSubmit = async (formEl: FormInstance | undefined) => { if (!formEl) return; formEl.validate(async (valid) => { @@ -290,10 +302,10 @@ const getBuckets = async () => { credential: form.credential, }) .then((res) => { - loading.value = true; + loading.value = false; buckets.value = res.data; }) - .finally(() => { + .catch(() => { buckets.value = []; loading.value = false; }); diff --git a/go.mod b/go.mod index 35dea251f..40cb63512 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,6 @@ go 1.18 require ( github.com/aliyun/aliyun-oss-go-sdk v2.2.5+incompatible github.com/aws/aws-sdk-go v1.44.99 - github.com/cenkalti/backoff/v4 v4.1.3 github.com/compose-spec/compose-go v1.6.0 github.com/dgraph-io/badger/v3 v3.2103.2 github.com/docker/docker v20.10.18+incompatible @@ -64,6 +63,7 @@ require ( github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect github.com/aliyun/alibaba-cloud-sdk-go v1.61.1755 // indirect github.com/andybalholm/brotli v1.0.4 // indirect + github.com/cenkalti/backoff/v4 v4.1.3 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.1.2 // indirect github.com/cloudflare/cloudflare-go v0.49.0 // indirect