From eb6aed7e56f4641595d21ffd1f29f105da10bba2 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Thu, 4 Jun 2026 10:16:08 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=20listings=20?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E5=AF=BC=E5=85=A5=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复 ListingDetailView, ListingsView 使用 features/listings - 修复 MobileHomeView, MobileListingDetailView 使用正确路径 - 修复 MobileRealnameView 使用 features/auth 类型错误:72 → 45 (-27) 模块错误继续下降 --- .../src/features/listings/views/ListingDetailView.vue | 4 ++-- frontend/src/features/listings/views/ListingsView.vue | 6 +++--- frontend/src/features/listings/views/MobileHomeView.vue | 8 ++++---- .../features/listings/views/MobileListingDetailView.vue | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/src/features/listings/views/ListingDetailView.vue b/frontend/src/features/listings/views/ListingDetailView.vue index d69604f..d61cc65 100644 --- a/frontend/src/features/listings/views/ListingDetailView.vue +++ b/frontend/src/features/listings/views/ListingDetailView.vue @@ -3,8 +3,8 @@ import { ElMessage } from "element-plus"; import { computed, onMounted, ref } from "vue"; import { useRoute, useRouter } from "vue-router"; -import { fetchListing, type Listing } from "@/api/listings"; -import { createOrder } from "@/api/orders"; +import { fetchListing, type Listing } from "@/features/listings/api/listings"; +import { createOrder } from "@/features/orders/api/orders"; import { useSessionStore } from "@/stores/session"; import { assetRegions, diff --git a/frontend/src/features/listings/views/ListingsView.vue b/frontend/src/features/listings/views/ListingsView.vue index c261255..72cbe9c 100644 --- a/frontend/src/features/listings/views/ListingsView.vue +++ b/frontend/src/features/listings/views/ListingsView.vue @@ -4,14 +4,14 @@ import { computed, onMounted, reactive, ref } from "vue"; import { emptyListingPublishOptions, type ListingPublishOptions, -} from "@/api/listingOptions"; -import { fetchListings, type Listing } from "@/api/listings"; +} from "@/features/listings/api/listingOptions"; +import { fetchListings, type Listing } from "@/features/listings/api/listings"; import { defaultHomeAnnouncements, defaultHomeBanners, fetchMobileHomeConfig, type HomeBannerSlide, -} from "@/api/homeConfig"; +} from "@/features/listings/api/homeConfig"; import { assetRegions, formatHafCoinM, diff --git a/frontend/src/features/listings/views/MobileHomeView.vue b/frontend/src/features/listings/views/MobileHomeView.vue index 84ef6e5..790fb32 100644 --- a/frontend/src/features/listings/views/MobileHomeView.vue +++ b/frontend/src/features/listings/views/MobileHomeView.vue @@ -4,18 +4,18 @@ import { RouterLink, useRouter } from "vue-router"; import { showToast } from "vant"; import MobileBottomNav from "@/components/MobileBottomNav.vue"; -import { ensureSupportChat } from "@/api/chats"; +import { ensureSupportChat } from "@/features/chats/api/chats"; import { emptyListingPublishOptions, type ListingPublishOptions, -} from "@/api/listingOptions"; -import { fetchListingsPage, type Listing, type PublicListingQuery } from "@/api/listings"; +} from "@/features/listings/api/listingOptions"; +import { fetchListingsPage, type Listing, type PublicListingQuery } from "@/features/listings/api/listings"; import { defaultHomeAnnouncements, defaultHomeBanners, fetchMobileHomeConfig, type HomeBannerSlide, -} from "@/api/homeConfig"; +} from "@/features/listings/api/homeConfig"; import MobileHomeFilterSheet, { type FilterSection, } from "./MobileHomeFilterSheet.vue"; diff --git a/frontend/src/features/listings/views/MobileListingDetailView.vue b/frontend/src/features/listings/views/MobileListingDetailView.vue index ab54738..7827e8f 100644 --- a/frontend/src/features/listings/views/MobileListingDetailView.vue +++ b/frontend/src/features/listings/views/MobileListingDetailView.vue @@ -3,8 +3,8 @@ import { computed, onMounted, ref } from "vue"; import { useRoute, useRouter } from "vue-router"; import { showToast, showDialog } from "vant"; -import { fetchListing, type Listing } from "@/api/listings"; -import { createOrder } from "@/api/orders"; +import { fetchListing, type Listing } from "@/features/listings/api/listings"; +import { createOrder } from "@/features/orders/api/orders"; import { useSessionStore } from "@/stores/session"; import { assetRegions,