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%;