登录功能,自动登录实现
This commit is contained in:
commit
bb8dfca7a1
5 files changed
+49
-51
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using SunlightAggregationTerminal.Class;
|
||||
using SunlightAggregationTerminal.Models;
|
||||
using SunlightAggregationTerminal.View;
|
||||
using System.Collections.ObjectModel;
|
||||
@@ -15,10 +16,13 @@ public partial class ProfilePage : ContentPage
|
||||
|
||||
private async void Out_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
//退出
|
||||
bool shouldExit = await DisplayAlertAsync("退出确认", "确定要退出吗?", "是", "否");
|
||||
if (shouldExit)
|
||||
{
|
||||
App.GlobalData.LogNo = false;
|
||||
await TcpServer.tcpClient.CloseAsync("");
|
||||
|
||||
var logpage = new View.LogPage();
|
||||
await Navigation.PushModalAsync(logpage);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user