修复:全局治理雪花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
+4 -3
View File
@@ -84,13 +84,14 @@ import type { FormInstance } from 'ant-design-vue'
import { UserOutlined, LockOutlined } from '@ant-design/icons-vue'
import { adminAuthApi, type LoginShopSelectionResponse } from '@/api/admin'
import { ACCOUNT_REGEX, ACCOUNT_RULE_MESSAGE, sanitizeAccountInput } from '@/utils/account'
import type { IdType } from '@/utils/id'
import { usePermission } from '@/utils/permission'
const router = useRouter()
const formRef = ref<FormInstance>()
const loading = ref(false)
const shopLoading = ref(false)
const shops = ref<Array<{ id: number | string; shopName: string }>>([])
const shops = ref<Array<{ id: IdType; shopName: string }>>([])
const allowShoplessLogin = ref(false)
const loginShopMessage = ref('')
const { loadUserPermissions } = usePermission()
@@ -109,8 +110,8 @@ const handleAccountInput = () => {
}
}
const getShopIdValue = (shop: { id: number | string; shopName: string }) => String(shop.id ?? '')
const getShopLabel = (shop: { id: number | string; shopName: string }) => String(shop.shopName || `店铺 ${shop.id}`)
const getShopIdValue = (shop: { id: IdType; shopName: string }) => String(shop.id ?? '')
const getShopLabel = (shop: { id: IdType; shopName: string }) => String(shop.shopName || `店铺 ${shop.id}`)
const shopOptions = computed(() =>
shops.value.map(shop => ({