refactor(goods): 优化商品列表获取逻辑
- 移除了不必要的 console.log 语句 - 更新了 artworkList API 的导入路径 - 删除了 Home 组件中的冗余模板代码
This commit is contained in:
parent
fbac90a177
commit
0d1342414b
@ -4,7 +4,7 @@ import {goodStore} from "@/stores/goods/index.js";
|
||||
import ItemList from './components/ItemList/index.vue'
|
||||
import Cescribe from './components/Cescribe/index.vue'
|
||||
|
||||
import {artworkList} from "~/api/goods/index.js";
|
||||
import {artworkList} from "@/api/goods/index.js";
|
||||
import {ref} from "vue";
|
||||
|
||||
const {fullLive, getAuctionDetail, auctionDetail, itemList, pageRef, liveRef} = goodStore();
|
||||
@ -20,7 +20,6 @@ const changeLive = () => {
|
||||
|
||||
<template>
|
||||
<div class="flex-grow-1">
|
||||
|
||||
<client-only>
|
||||
<liveRoom @click="changeLive" :class="['changeLive', fullLive ? 'expanded' : 'collapsed']" ref="liveRef"
|
||||
:fullLive="fullLive"/>
|
||||
@ -36,7 +35,6 @@ const changeLive = () => {
|
||||
</van-tabs>
|
||||
<van-back-top right="15vw" bottom="10vh"/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<style>
|
||||
|
@ -54,8 +54,6 @@ export const goodStore = createGlobalState(() => {
|
||||
page: pageRef.value.page,
|
||||
pageSize: pageRef.value.pageSize
|
||||
})
|
||||
console.log('res',res)
|
||||
|
||||
if (res.status === 0) {
|
||||
const newItems = res.data.data || []
|
||||
|
||||
|
@ -726,6 +726,7 @@ packages:
|
||||
'@fastify/accept-negotiator@1.1.0':
|
||||
resolution: {integrity: sha512-OIHZrb2ImZ7XG85HXOONLcJWGosv7sIvM2ifAPQVhg9Lv7qdmMBNVaai4QTdyuaqbKM5eO6sLSQOYI7wEQeCJQ==}
|
||||
engines: {node: '>=14'}
|
||||
|
||||
'@fingerprintjs/fingerprintjs@4.5.1':
|
||||
resolution: {integrity: sha512-hKJaRoLHNeUUPhb+Md3pTlY/Js2YR4aXjroaDHpxrjoM8kGnEFyZVZxXo6l3gRyKnQN52Uoqsycd3M73eCdMzw==}
|
||||
|
||||
@ -958,6 +959,9 @@ packages:
|
||||
peerDependencies:
|
||||
vue: ^3.3.4
|
||||
|
||||
'@nuxtjs/color-mode@3.5.2':
|
||||
resolution: {integrity: sha512-cC6RfgZh3guHBMLLjrBB2Uti5eUoGM9KyauOaYS9ETmxNWBMTvpgjvSiSJp1OFljIXPIqVTJ3xtJpSNZiO3ZaA==}
|
||||
|
||||
'@nuxtjs/i18n@9.1.1':
|
||||
resolution: {integrity: sha512-S8l5ri1GFo5OUsl9qSgicE9Sm0BZjVHU7p6ml1qhQUTewngnTPTlcytWX5etwJeAjHEu2w9VAV4qXTn9Q5EgmQ==}
|
||||
engines: {node: ^14.16.0 || >=16.11.0}
|
||||
@ -4934,6 +4938,7 @@ snapshots:
|
||||
|
||||
'@fastify/accept-negotiator@1.1.0':
|
||||
optional: true
|
||||
|
||||
'@fingerprintjs/fingerprintjs@4.5.1':
|
||||
dependencies:
|
||||
tslib: 2.8.1
|
||||
@ -5144,7 +5149,7 @@ snapshots:
|
||||
|
||||
'@nuxt/devtools-kit@1.6.4(magicast@0.3.5)(rollup@4.29.1)(vite@6.0.5(@types/node@22.10.2)(jiti@2.4.2)(sass@1.83.1)(terser@5.37.0)(tsx@4.19.2)(yaml@2.6.1))':
|
||||
dependencies:
|
||||
'@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1)
|
||||
'@nuxt/kit': 3.15.2(magicast@0.3.5)(rollup@4.29.1)
|
||||
'@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@4.29.1)
|
||||
execa: 7.2.0
|
||||
vite: 6.0.5(@types/node@22.10.2)(jiti@2.4.2)(sass@1.83.1)(terser@5.37.0)(tsx@4.19.2)(yaml@2.6.1)
|
||||
@ -5161,7 +5166,7 @@ snapshots:
|
||||
global-directory: 4.0.1
|
||||
magicast: 0.3.5
|
||||
pathe: 1.1.2
|
||||
pkg-types: 1.2.1
|
||||
pkg-types: 1.3.1
|
||||
prompts: 2.4.2
|
||||
rc9: 2.1.2
|
||||
semver: 7.6.3
|
||||
@ -5411,6 +5416,17 @@ snapshots:
|
||||
- vue-tsc
|
||||
- yaml
|
||||
|
||||
'@nuxtjs/color-mode@3.5.2(magicast@0.3.5)(rollup@4.29.1)':
|
||||
dependencies:
|
||||
'@nuxt/kit': 3.15.2(magicast@0.3.5)(rollup@4.29.1)
|
||||
pathe: 1.1.2
|
||||
pkg-types: 1.3.1
|
||||
semver: 7.6.3
|
||||
transitivePeerDependencies:
|
||||
- magicast
|
||||
- rollup
|
||||
- supports-color
|
||||
|
||||
'@nuxtjs/i18n@9.1.1(@vue/compiler-dom@3.5.13)(eslint@9.17.0(jiti@2.4.2))(magicast@0.3.5)(rollup@4.29.1)(typescript@5.7.2)(vue@3.5.13(typescript@5.7.2))':
|
||||
dependencies:
|
||||
'@intlify/h3': 0.6.1
|
||||
@ -7636,7 +7652,7 @@ snapshots:
|
||||
local-pkg@0.5.1:
|
||||
dependencies:
|
||||
mlly: 1.7.3
|
||||
pkg-types: 1.2.1
|
||||
pkg-types: 1.3.1
|
||||
|
||||
local-pkg@1.0.0:
|
||||
dependencies:
|
||||
@ -8064,7 +8080,7 @@ snapshots:
|
||||
consola: 3.3.1
|
||||
execa: 8.0.1
|
||||
pathe: 1.1.2
|
||||
pkg-types: 1.2.1
|
||||
pkg-types: 1.3.1
|
||||
ufo: 1.5.4
|
||||
|
||||
nypm@0.4.1:
|
||||
@ -9151,7 +9167,7 @@ snapshots:
|
||||
magic-string: 0.30.17
|
||||
mlly: 1.7.3
|
||||
pathe: 1.1.2
|
||||
pkg-types: 1.2.1
|
||||
pkg-types: 1.3.1
|
||||
unplugin: 1.16.0
|
||||
|
||||
update-browserslist-db@1.1.1(browserslist@4.24.3):
|
||||
|
Loading…
Reference in New Issue
Block a user