fix
This commit is contained in:
@@ -3,17 +3,32 @@ import { ref, onMounted, onUnmounted, reactive, toRefs } from "vue";
|
|||||||
import sellerHeader from "../../seller-header.vue"
|
import sellerHeader from "../../seller-header.vue"
|
||||||
import sellerContent from "./content.vue"
|
import sellerContent from "./content.vue"
|
||||||
import myEvent from "@/tool/myEvents.js"
|
import myEvent from "@/tool/myEvents.js"
|
||||||
|
import Https from "@/tool/https.js"
|
||||||
|
import { useStore } from "vuex";
|
||||||
|
|
||||||
|
|
||||||
//const props = defineProps({
|
//const props = defineProps({
|
||||||
//})
|
//})
|
||||||
//const emit = defineEmits([
|
//const emit = defineEmits([
|
||||||
//])
|
//])
|
||||||
|
const store = useStore()
|
||||||
let data = reactive({
|
let data = reactive({
|
||||||
|
listingPopup: true,
|
||||||
})
|
})
|
||||||
const newListing = ()=>{
|
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(()=>{
|
onMounted(()=>{
|
||||||
|
let listingPopup = sessionStorage.getItem('listingPopup')
|
||||||
})
|
})
|
||||||
onUnmounted(()=>{
|
onUnmounted(()=>{
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user