feat: ts严格类型
This commit is contained in:
parent
2caf82318a
commit
c069f0f205
@ -106,7 +106,7 @@ struct AccountView: View {
|
||||
|
||||
Button(action: {
|
||||
// 处理删除账号逻辑
|
||||
NetworkService.shared.delete(path: "/iam/delete-user", parameters: nil) { result in
|
||||
NetworkService.shared.delete(path: "/iam/delete-user", parameters: nil) { (result: Result<String, NetworkError>) in
|
||||
switch result {
|
||||
case .success(let data):
|
||||
print("删除账号成功: \(data)")
|
||||
|
||||
@ -46,11 +46,7 @@ struct WakeApp: App {
|
||||
if authState.isAuthenticated {
|
||||
// 已登录:显示主页面
|
||||
NavigationStack(path: $router.path) {
|
||||
// BlindBoxView(mediaType: .all)
|
||||
// .navigationDestination(for: AppRoute.self) { route in
|
||||
// route.view
|
||||
// }
|
||||
LoginView()
|
||||
BlindBoxView(mediaType: .all)
|
||||
.navigationDestination(for: AppRoute.self) { route in
|
||||
route.view
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user