From 821f35b7c73515972aa3f2f20c78b3c94bf837ac Mon Sep 17 00:00:00 2001 From: "X1627315083@163.com" <1627315083@qq.com> Date: Mon, 27 Apr 2026 09:39:26 +0800 Subject: [PATCH] fix --- .../SellerDashboard/MyListings/main/index.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/views/SellerDashboard/MyListings/main/index.vue b/src/views/SellerDashboard/MyListings/main/index.vue index aa7dc00f..1ba62eac 100644 --- a/src/views/SellerDashboard/MyListings/main/index.vue +++ b/src/views/SellerDashboard/MyListings/main/index.vue @@ -3,17 +3,32 @@ import { ref, onMounted, onUnmounted, reactive, toRefs } from "vue"; import sellerHeader from "../../seller-header.vue" import sellerContent from "./content.vue" import myEvent from "@/tool/myEvents.js" +import Https from "@/tool/https.js" +import { useStore } from "vuex"; + //const props = defineProps({ //}) //const emit = defineEmits([ //]) +const store = useStore() let data = reactive({ + listingPopup: true, }) const newListing = ()=>{ - myEvent.emit('newListing') + myEvent.emit('newListing',) +} +const getListingPopup = ()=>{ + store.commit("set_loading", true) + Https.getListingPopup().then(res=>{ + store.commit("set_loading", false) + data.listingPopup = res.data + }).catch(()=>{ + store.commit("set_loading", false) + }) } onMounted(()=>{ + let listingPopup = sessionStorage.getItem('listingPopup') }) onUnmounted(()=>{ })