From ce6522ef906f758567eac50a479561b831152841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Fri, 17 Apr 2026 10:17:03 +0800 Subject: [PATCH] fix --- src/views/SellerDashboard/BrandProfile/brand-info.vue | 8 +++----- src/views/SellerDashboard/BrandProfile/index.vue | 3 ++- src/views/SellerDashboard/MyOrders/index.vue | 8 +++++++- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/views/SellerDashboard/BrandProfile/brand-info.vue b/src/views/SellerDashboard/BrandProfile/brand-info.vue index c7466336..1c9d8f15 100644 --- a/src/views/SellerDashboard/BrandProfile/brand-info.vue +++ b/src/views/SellerDashboard/BrandProfile/brand-info.vue @@ -44,7 +44,7 @@ @@ -129,10 +129,8 @@ edit() } const submit = async () => { - const valid = await formRef.value.validate() - if (!valid) return Promise.reject(false) - console.log(valid) - return valid + await formRef.value.validate() + return JSON.parse(JSON.stringify(formData)) } defineExpose({ submit diff --git a/src/views/SellerDashboard/BrandProfile/index.vue b/src/views/SellerDashboard/BrandProfile/index.vue index d47dd281..129ccc98 100644 --- a/src/views/SellerDashboard/BrandProfile/index.vue +++ b/src/views/SellerDashboard/BrandProfile/index.vue @@ -96,7 +96,8 @@ const onSubmit = () => { brandInfoRef.value .submit() - .then(() => { + .then((res) => { + console.log(res) isEdit.value = false }) .catch(() => {}) diff --git a/src/views/SellerDashboard/MyOrders/index.vue b/src/views/SellerDashboard/MyOrders/index.vue index 019c7e65..8f16daee 100644 --- a/src/views/SellerDashboard/MyOrders/index.vue +++ b/src/views/SellerDashboard/MyOrders/index.vue @@ -66,7 +66,9 @@
- + @@ -99,6 +101,7 @@ const nameOrId = ref("") const list = ref([]) const getList = (isReload = false) => { + if (loading.value) return loading.value = true if (isReload) { list.value = [] @@ -350,6 +353,9 @@ display: flex; align-items: center; justify-content: center; + &.null { + height: 30rem; + } } > .placeholder { width: 100%;