Merge branch 'dev_vite' of http://18.167.251.121:10003/aidlab/aida_front into dev_vite
This commit is contained in:
@@ -83,6 +83,8 @@
|
|||||||
import ProductImageList from "./components/ProductImageList.vue"
|
import ProductImageList from "./components/ProductImageList.vue"
|
||||||
import TopImageSection from "./components/TopImageSection.vue"
|
import TopImageSection from "./components/TopImageSection.vue"
|
||||||
import { useStore } from "vuex"
|
import { useStore } from "vuex"
|
||||||
|
import { debounce } from "lodash-es"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
fetchSketchDetail,
|
fetchSketchDetail,
|
||||||
uploadFile,
|
uploadFile,
|
||||||
@@ -594,13 +596,14 @@
|
|||||||
})
|
})
|
||||||
await fetchUpdateListing(paramsList)
|
await fetchUpdateListing(paramsList)
|
||||||
}
|
}
|
||||||
const handleClickMenu = async (status: StatusType) => {
|
const handleClickMenu = debounce(async (status: StatusType) => {
|
||||||
|
// async (status: StatusType) => {
|
||||||
if (!validatePublishRequired()) return
|
if (!validatePublishRequired()) return
|
||||||
|
|
||||||
await handleSaveForm(status)
|
await handleSaveForm(status)
|
||||||
|
|
||||||
// 从 sessionStorage 获取参数
|
// 从 sessionStorage 获取参数
|
||||||
const paramsStr = sessionStorage.getItem('listingEditParams')
|
const paramsStr = sessionStorage.getItem("listingEditParams")
|
||||||
const params = paramsStr ? JSON.parse(paramsStr) : {}
|
const params = paramsStr ? JSON.parse(paramsStr) : {}
|
||||||
|
|
||||||
if (status === "draft") {
|
if (status === "draft") {
|
||||||
@@ -622,7 +625,8 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
// }
|
||||||
|
}, 1000)
|
||||||
|
|
||||||
const handleFetchItemDetial = (list) => {
|
const handleFetchItemDetial = (list) => {
|
||||||
fetchSketchDetail(list).then((res: SketchDetailResponse[]) => {
|
fetchSketchDetail(list).then((res: SketchDetailResponse[]) => {
|
||||||
@@ -664,7 +668,7 @@
|
|||||||
resetScrollPositions()
|
resetScrollPositions()
|
||||||
|
|
||||||
// 从 sessionStorage 获取参数
|
// 从 sessionStorage 获取参数
|
||||||
const paramsStr = sessionStorage.getItem('listingEditParams')
|
const paramsStr = sessionStorage.getItem("listingEditParams")
|
||||||
const data = paramsStr ? JSON.parse(paramsStr) : {}
|
const data = paramsStr ? JSON.parse(paramsStr) : {}
|
||||||
|
|
||||||
if (data?.type === "edit") {
|
if (data?.type === "edit") {
|
||||||
@@ -683,7 +687,6 @@
|
|||||||
// console.log("list", list.length, list)
|
// console.log("list", list.length, list)
|
||||||
handleFetchItemDetial(list)
|
handleFetchItemDetial(list)
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user