Explorar o código

修复在租户管理中为租户授权菜单时报错的问题

Signed-off-by: pddeng <517849241@qq.com>
pddeng %!s(int64=3) %!d(string=hai) anos
pai
achega
d9ca3f9059

+ 1 - 1
Admin.NET/Admin.NET.Core/SeedData/SysTenantSeedData.cs

@@ -14,7 +14,7 @@ public class SysTenantSeedData : ISqlSugarEntitySeedData<SysTenant>
     {
         return new[]
         {
-            new SysTenant{ Id=123456780000000, OrgId=252885263003720, UserId=252885263000000, Host="www.dilon.vip", TenantType=TenantTypeEnum.Id, DbType=SqlSugar.DbType.Sqlite, Connection="DataSource=./Admin.NET.db", ConfigId=SqlSugarConst.ConfigId, Remark="系统默认", CreateTime=DateTime.Parse("2022-02-10 00:00:00") },
+            new SysTenant{ Id=123456780000000, OrgId=252885263003720, UserId=252885263003721, Host="www.dilon.vip", TenantType=TenantTypeEnum.Id, DbType=SqlSugar.DbType.Sqlite, Connection="DataSource=./Admin.NET.db", ConfigId=SqlSugarConst.ConfigId, Remark="系统默认", CreateTime=DateTime.Parse("2022-02-10 00:00:00") },
         };
     }
 }

+ 1 - 1
Web/src/views/system/tenant/component/grantMenu.vue

@@ -63,7 +63,7 @@ export default defineComponent({
 		const openDialog = async (row: any) => {
 			treeRef.value?.setCheckedKeys([]); // 先清空已选择节点
 			state.ruleForm = row;
-			var res = await getAPI(SysTenantApi).sysTenantOwnMenuListGet(row.userId);
+			var res = await getAPI(SysTenantApi).sysTenantOwnMenuListGet(row.id, 1, row.userId);
 			setTimeout(() => {
 				// 延迟传递数据
 				treeRef.value?.setCheckedKeys(res.data.result);