修复:全局治理雪花ID精度问题

This commit is contained in:
xiaowang
2026-03-27 14:55:41 +08:00
parent 824e35366a
commit d2b63e0c71
34 changed files with 459 additions and 255 deletions
+3 -2
View File
@@ -49,6 +49,7 @@ import { LeftOutlined } from '@ant-design/icons-vue'
import { message, Modal } from 'ant-design-vue'
import { fileApi } from '../api/index'
import { orderApi } from '../api/order'
import type { IdType } from '@/utils/id'
const router = useRouter()
const orders = ref<any[]>([])
@@ -69,7 +70,7 @@ const loadOrders = async () => {
if (!match?.[1]) continue
const imageId = match[1]
try {
if (!imageIdCache.value[imageId]) imageIdCache.value[imageId] = await fileApi.getSignedUrl(Number(imageId)) as any
if (!imageIdCache.value[imageId]) imageIdCache.value[imageId] = await fileApi.getSignedUrl(imageId) as any
item.productImage = imageIdCache.value[imageId]
} catch {
item.productImage = ''
@@ -81,7 +82,7 @@ const loadOrders = async () => {
}
}
const completeOrder = (orderId: number) => {
const completeOrder = (orderId: IdType) => {
Modal.confirm({
title: '确认完成服务',
content: '确定要完成这个订单吗?',