mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-10-31 10:37:41 +08:00 
			
		
		
		
	Merge branch 'master' of https://gitee.com/zhijiantianya/ruoyi-vue-pro into feature/1.6.1
This commit is contained in:
		| @ -136,7 +136,12 @@ public class RoleServiceImpl implements RoleService { | |||||||
|         role.setDataScope(DataScopeEnum.ALL.getScope()); // 默认可查看所有数据。原因是,可能一些项目不需要项目权限 |         role.setDataScope(DataScopeEnum.ALL.getScope()); // 默认可查看所有数据。原因是,可能一些项目不需要项目权限 | ||||||
|         roleMapper.insert(role); |         roleMapper.insert(role); | ||||||
|         // 发送刷新消息 |         // 发送刷新消息 | ||||||
|  |         TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronization() { | ||||||
|  |             @Override | ||||||
|  |             public void afterCommit() { | ||||||
|                 roleProducer.sendRoleRefreshMessage(); |                 roleProducer.sendRoleRefreshMessage(); | ||||||
|  |             } | ||||||
|  |         }); | ||||||
|         // 返回 |         // 返回 | ||||||
|         return role.getId(); |         return role.getId(); | ||||||
|     } |     } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV