Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add responsibility users for app #437

Merged
merged 5 commits into from
Jan 13, 2025

Conversation

Qinyouzeng
Copy link
Contributor

No description provided.

foreach (var adminAvatar in Users)
{
<MAvatar Size="40">
<MImage Width="40" Height="40" Src="@adminAvatar.Avatar" title="@adminAvatar.DisplayName"></MImage>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<MImage Width="40" Height="40" Src="@adminAvatar.Avatar" title="@adminAvatar.DisplayName"></MImage>
<MImage Width="40" Height="40" Src="@adminAvatar.Avatar" alt="@adminAvatar.DisplayName"></MImage>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个生成的div,alt无效,title会显示

Comment on lines +39 to +43
protected override void OnInitialized()
{
base.OnInitialized();
_users = new();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

初始化 _users 的时候就 new() 就行了吧?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是继承的,默认是null, 只有页面可以执行初始化和后续的操作

@Qinyouzeng Qinyouzeng merged commit 2b51637 into main Jan 13, 2025
1 check passed
@Qinyouzeng Qinyouzeng deleted the feat/add-responsibility-users branch January 13, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants