统一前端共享工具入口

This commit is contained in:
yml
2026-06-09 20:50:57 +08:00
parent 684e30862d
commit 60324765c5
69 changed files with 106 additions and 1142 deletions
@@ -3,7 +3,10 @@ import { ElMessage } from 'element-plus'
import { computed, ref, watch } from 'vue'
import { updateSystemConfig, type SystemConfig } from '@/features/admin/api/systemConfigs'
import { getSystemConfigSelectOptions, type SystemConfigOption } from '@/utils/systemConfigOptions'
import {
getSystemConfigSelectOptions,
type SystemConfigOption,
} from '@/shared/utils/systemConfigOptions'
const props = defineProps<{
modelValue: boolean
@@ -4,7 +4,7 @@ import { ref, watch } from 'vue'
import { defaultHomeAnnouncements, mergeHomeConfig } from '@/features/listings/api/homeConfig'
import { updateSystemConfig, type SystemConfig } from '@/features/admin/api/systemConfigs'
import { safeParseJSON } from '@/utils/json'
import { safeParseJSON } from '@/shared/utils/json'
const props = defineProps<{
modelValue: boolean
@@ -9,7 +9,7 @@ import {
type HomeBannerSlide,
} from '@/features/listings/api/homeConfig'
import { updateSystemConfig, type SystemConfig } from '@/features/admin/api/systemConfigs'
import { safeParseJSON } from '@/utils/json'
import { safeParseJSON } from '@/shared/utils/json'
const props = defineProps<{
modelValue: boolean
@@ -4,7 +4,7 @@ import { ref, watch } from 'vue'
import { updateSystemConfig, type SystemConfig } from '@/features/admin/api/systemConfigs'
import type { ListingPublishAgreements } from '@/features/listings/api/listingOptions'
import { safeParseJSON } from '@/utils/json'
import { safeParseJSON } from '@/shared/utils/json'
const defaultListingPublishAgreements: ListingPublishAgreements = {
virtual_asset_sale: {
@@ -4,7 +4,7 @@ import { ref, watch } from 'vue'
import { updateSystemConfig, type SystemConfig } from '@/features/admin/api/systemConfigs'
import type { OrderAgreements } from '@/features/orders/api/orders'
import { safeParseJSON } from '@/utils/json'
import { safeParseJSON } from '@/shared/utils/json'
const defaultOrderAgreements: OrderAgreements = {
virtual_asset_purchase: {
@@ -10,7 +10,7 @@ import {
type CreatePaymentConfigRequest,
type UpdatePaymentConfigRequest,
} from '@/features/admin/api/paymentConfig'
import { readError } from '@/utils/error'
import { readError } from '@/shared/utils/error'
const props = defineProps<{
modelValue: boolean
@@ -3,7 +3,7 @@ import { ElMessage } from 'element-plus'
import { ref, watch } from 'vue'
import { updateSystemConfig, type SystemConfig } from '@/features/admin/api/systemConfigs'
import { safeParseJSON } from '@/utils/json'
import { safeParseJSON } from '@/shared/utils/json'
interface PostRentalNotice {
title: string
@@ -8,7 +8,7 @@ import {
type ListingPublishOptions,
} from '@/features/listings/api/listingOptions'
import { updateSystemConfig, type SystemConfig } from '@/features/admin/api/systemConfigs'
import { safeParseJSON } from '@/utils/json'
import { safeParseJSON } from '@/shared/utils/json'
const props = defineProps<{
modelValue: boolean
@@ -8,7 +8,7 @@ import {
type PublishSalePriceConfig,
} from '@/features/listings/api/listingOptions'
import { updateSystemConfig, type SystemConfig } from '@/features/admin/api/systemConfigs'
import { safeParseJSON } from '@/utils/json'
import { safeParseJSON } from '@/shared/utils/json'
const props = defineProps<{
modelValue: boolean