diff --git a/src/views/SellerDashboard/BrandProfile/brand-info.vue b/src/views/SellerDashboard/BrandProfile/brand-info.vue index e4aa1241..b1f5f412 100644 --- a/src/views/SellerDashboard/BrandProfile/brand-info.vue +++ b/src/views/SellerDashboard/BrandProfile/brand-info.vue @@ -1,26 +1,33 @@ diff --git a/src/views/SellerDashboard/BrandProfile/index.vue b/src/views/SellerDashboard/BrandProfile/index.vue index d802d4bc..afe33205 100644 --- a/src/views/SellerDashboard/BrandProfile/index.vue +++ b/src/views/SellerDashboard/BrandProfile/index.vue @@ -20,7 +20,22 @@ - + + + @@ -29,6 +44,22 @@ import BrandInfo from "./brand-info.vue" const banner = ref("http://118.31.39.42:3000/falls/5bd8065cbb396eb5a8ef0a142605139358734e57.png") const avatar = ref("http://118.31.39.42:3000/falls/20251024140128_10355_1.jpg") + const isEdit = ref(false) + const brandInfoRef = ref(null) + const onEdit = () => { + isEdit.value = true + } + const onCancel = () => { + isEdit.value = false + } + const onSubmit = () => { + brandInfoRef.value + .submit() + .then(() => { + isEdit.value = false + }) + .catch(() => {}) + } diff --git a/src/views/SellerDashboard/MyListings/main/content.vue b/src/views/SellerDashboard/MyListings/main/content.vue index 5be60fc2..2f3ad05f 100644 --- a/src/views/SellerDashboard/MyListings/main/content.vue +++ b/src/views/SellerDashboard/MyListings/main/content.vue @@ -115,14 +115,17 @@ const { showDrafts } = toRefs(data); \ No newline at end of file