修复:全局治理雪花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
+2 -1
View File
@@ -5,6 +5,7 @@ import { wishlistApi } from './wishlist'
import router from '../router'
import { message } from 'ant-design-vue'
import { API_BASE_URL } from '../config/api'
import type { IdType } from '@/utils/id'
// 防重复提示标志
let lastErrorTime = 0
@@ -223,7 +224,7 @@ api.interceptors.response.use(
)
export const fileApi = {
getSignedUrl: (fileId: number, expiryTimeInMinutes?: number) => {
getSignedUrl: (fileId: IdType, expiryTimeInMinutes?: number) => {
return api.get<string>(`/file/get-signed-url/${fileId}`, {
params: { expiryTimeInMinutes }
})