删除设计师

This commit is contained in:
李志鹏
2026-05-04 14:08:16 +08:00
parent b3d9bce440
commit acf2029efe
3 changed files with 35 additions and 4 deletions

View File

@@ -79,6 +79,7 @@
<script setup>
import { ref } from "vue"
import { Https } from "@/tool/https"
import { Modal } from "ant-design-vue"
import paypal from "@/assets/images/seller/setting/paypal.png"
import stripe from "@/assets/images/seller/setting/stripe.png"
@@ -86,6 +87,10 @@
import alipayChinese from "@/assets/images/seller/setting/alipay-chinese.png"
import { useI18n } from "vue-i18n"
const { t } = useI18n()
import { useStore } from "vuex"
const store = useStore()
import { useRouter } from "vue-router"
const router = useRouter()
const checked = ref(true)
const payList = ref([
@@ -124,7 +129,16 @@
cancelText: t("Seller.cancel"),
centered: true,
onOk() {
console.log("stop selling")
store.commit("set_loading", true)
Https.axiosDelete(Https.httpUrls.deleteSellerDesigner)
.then((res) => {
store.commit("set_loading", false)
store.commit("seller/clear_state")
router.push({ name: "home" })
})
.catch(() => {
store.commit("set_loading", false)
})
}
})
}