选择线稿图后下一步
This commit is contained in:
@@ -5,24 +5,28 @@ import sellerContent from "./content.vue"
|
||||
import myEvent from "@/tool/myEvents.js"
|
||||
import { Https } from '@/tool/https'
|
||||
import { useStore } from "vuex";
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
|
||||
//const props = defineProps({
|
||||
//})
|
||||
//const emit = defineEmits([
|
||||
//])
|
||||
const router = useRouter()
|
||||
const store = useStore()
|
||||
let data = reactive({
|
||||
listingPopup: true,
|
||||
})
|
||||
const newListing = ()=>{
|
||||
myEvent.emit('newListing',)
|
||||
}
|
||||
const getListingPopup = ()=>{
|
||||
const newListing = async ()=>{
|
||||
let path = '/home/seller/myListings/select'
|
||||
store.commit("set_loading", true)
|
||||
Https.getListingPopup().then(res=>{
|
||||
//1弹窗 0不弹窗
|
||||
Https.axiosGet(Https.httpUrls.getListingPopup,).then((rv)=>{
|
||||
if(rv == 0){
|
||||
router.push({path:'/home/seller/myListings/select'})
|
||||
}else{
|
||||
myEvent.emit('newListing',path)
|
||||
}
|
||||
store.commit("set_loading", false)
|
||||
data.listingPopup = res.data
|
||||
}).catch(()=>{
|
||||
store.commit("set_loading", false)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user