refactor(home): 简化 ItemList 组件的脚本- 移除了未使用的 import语句
- 删除了未使用的组件引用 - 清理了未使用的状态和方法
This commit is contained in:
parent
c0f4a14186
commit
f5467618d3
@ -1,19 +1,14 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { useRect } from "@vant/use"
|
|
||||||
import { goodStore } from "@/stores/goods"
|
import { goodStore } from "@/stores/goods"
|
||||||
import DetailPopup from '../DetailPopup/index.vue'
|
import DetailPopup from '../DetailPopup/index.vue'
|
||||||
import MasonryWall from '@yeger/vue-masonry-wall'
|
import MasonryWall from '@yeger/vue-masonry-wall'
|
||||||
const {
|
const {
|
||||||
itemList,
|
itemList,
|
||||||
pageRef,
|
pageRef,
|
||||||
auctionDetail,
|
|
||||||
liveRef,
|
|
||||||
artWorkDetail,
|
|
||||||
currentItem,
|
currentItem,
|
||||||
loading: storeLoading,
|
loading: storeLoading,
|
||||||
getArtworkList,
|
getArtworkList,
|
||||||
getArtworkDetail
|
|
||||||
} = goodStore()
|
} = goodStore()
|
||||||
|
|
||||||
const localState = ref({
|
const localState = ref({
|
||||||
@ -44,7 +39,6 @@ const onRefresh = async () => {
|
|||||||
const openShow = async (item) => {
|
const openShow = async (item) => {
|
||||||
localState.value.showDetail = true
|
localState.value.showDetail = true
|
||||||
currentItem.value = item
|
currentItem.value = item
|
||||||
/* getArtworkDetail(item.uuid)*/
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user