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