|
|
@@ -262,7 +262,7 @@ const loadSubAccountData = async () => {
|
|
|
if (!accountId.value) return;
|
|
|
try {
|
|
|
const storeId = localGet("createdId") || localGet("geeker-user")?.userInfo?.storeId || "";
|
|
|
- const userId = route.query.userId;
|
|
|
+ const userId = route.query.userId ? Number(route.query.userId) : Number(accountId.value);
|
|
|
const roleIdNew = Number(route.query.roleId);
|
|
|
const res = await getSubAccountDetail(Number(storeId), userId, roleIdNew);
|
|
|
const code = typeof res.code === "string" ? parseInt(res.code) : res.code;
|