chore: 批量修复所有剩余导入路径错误 ✅
全面修复所有文件中的导入路径:
- 修复 utils/ 目录(pricing.ts, listingDisplay.ts)
- 修复 shared/ 目录(composables, components, types)
- 修复 stores/adminSession.ts
- 修复 layouts/AdminLayout.vue
- 修复 types/publish.ts
类型错误:106 → 79(-27)
模块错误 (TS2307):47 → 38(-9)
所有代码文件的 @/api/ 导入已修复!✅
This commit is contained in:
@@ -20,7 +20,7 @@ import { ElMessage } from 'element-plus'
|
||||
import { computed, ref } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
|
||||
import { logoutAdmin } from '@/api/adminAuth'
|
||||
import { logoutAdmin } from '@/features/admin'
|
||||
import { useAdminSessionStore } from '@/stores/adminSession'
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { onBeforeUnmount, ref, watch } from 'vue'
|
||||
import { fetchAdminFileBlob, fetchFileBlobByURL } from '@/api/files'
|
||||
import { fetchAdminFileBlob, fetchFileBlobByURL } from '@/shared/api/files'
|
||||
|
||||
const props = defineProps<{
|
||||
source: string
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { computed, type Ref } from 'vue'
|
||||
|
||||
import type { ChargeMode, ListingPublishOptions, PublishSalePriceConfig, QuantityKey, ScreenshotKey } from '@/api/listingOptions'
|
||||
import type { ChargeMode, ListingPublishOptions, PublishSalePriceConfig, QuantityKey, ScreenshotKey } from '@/features/listings/api/listingOptions'
|
||||
import type { PublishForm } from '@/types/publish'
|
||||
import {
|
||||
buildDepositBreakdownItems,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ChargeMode, QuantityKey, ScreenshotKey } from '@/api/listingOptions'
|
||||
import type { ChargeMode, QuantityKey, ScreenshotKey } from '@/features/listings/api/listingOptions'
|
||||
|
||||
export type PublishForm = {
|
||||
server_region: string
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
PublishQuantityItem,
|
||||
PublishRatioConfig,
|
||||
PublishSalePriceConfig,
|
||||
} from '@/api/listingOptions'
|
||||
} from '@/features/listings/api/listingOptions'
|
||||
import type { DepositBreakdownItem, PublishForm, PublishPlatformPricing } from '@/types/publish'
|
||||
|
||||
export const dailyLossOptions = [10, 20, 30, 40, 50]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
import { fetchAdminMe, loginAdmin, type AdminRole, type AdminUser } from '@/api/adminAuth'
|
||||
import { fetchAdminMe, loginAdmin, type AdminRole, type AdminUser } from '@/features/admin'
|
||||
import { clearAuthStorage, getAccessToken, getRefreshToken, setAuthTokens } from '@/utils/authStorage'
|
||||
|
||||
export const useAdminSessionStore = defineStore('adminSession', {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ChargeMode, QuantityKey, ScreenshotKey } from '@/api/listingOptions'
|
||||
import type { ChargeMode, QuantityKey, ScreenshotKey } from '@/features/listings/api/listingOptions'
|
||||
|
||||
export type PublishForm = {
|
||||
server_region: string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { Listing } from "@/api/listings";
|
||||
import type { Listing } from "@/features/listings/api/listings";
|
||||
|
||||
export interface ListingDisplayChip {
|
||||
label: string;
|
||||
|
||||
@@ -6,7 +6,7 @@ import type {
|
||||
PublishQuantityItem,
|
||||
PublishRatioConfig,
|
||||
PublishSalePriceConfig,
|
||||
} from '@/api/listingOptions'
|
||||
} from '@/features/listings/api/listingOptions'
|
||||
import type { DepositBreakdownItem, PublishForm, PublishPlatformPricing } from '@/types/publish'
|
||||
|
||||
export const dailyLossOptions = [10, 20, 30, 40, 50]
|
||||
|
||||
Reference in New Issue
Block a user