@page "/Password" @using WalkingTec.Mvvm.Mvc.Admin.ViewModels.FrameworkUserVms @inherits BasePage @code { private ChangePasswordVM Model = new ChangePasswordVM(); private ValidateForm vform { get; set; } protected override void OnInitialized() { Model.ITCode = UserInfo.ITCode; } private async Task Submit(EditContext context) { await PostsForm(vform, $"/api/_account/ChangePassword", (s) => "Sys.OprationSuccess", method: HttpMethodEnum.POST); } public void OnClose() { CloseDialog(); } }