Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add parseInt to get principalId from url

天舟29b89acd9cd8
diff --git a/frontend/src/store/modules/router.ts b/frontend/src/store/modules/router.ts
index 2368af45cd..1a9486274b 100644
--- a/frontend/src/store/modules/router.ts
+++ b/frontend/src/store/modules/router.ts
@@ -98,7 +98,7 @@ const getters = {
) || ["/", undefined];
if (profileComponents[1]) {
return {
- principalId: profileComponents[1],
+ principalId: parseInt(profileComponents[1]),
};
}
}