Sfoglia il codice sorgente

fix: 角色权限保存 id 改为字符串避免雪花ID精度丢失

Number(key) 在 JavaScript 中无法精确表示 19 位雪花 ID,
改为直接传字符串,由 Jackson 反序列化为 Long。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
skyline 23 ore fa
parent
commit
c099510b0a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      admin-web/src/views/admin/role/index.vue

+ 1 - 1
admin-web/src/views/admin/role/index.vue

@@ -275,7 +275,7 @@ const handleSaveRolePermission = () => {
   ////console.log(map)
   map.forEach((value: Array<string>, key: any) => {
     updateRoles.push({
-      id: Number(key),
+      id: key,
       permissions: value.join("|")
     });
   })