李志伟 3 years ago
parent
commit
823f731144
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/pages/main/index.dart

+ 1
- 1
lib/pages/main/index.dart View File

@@ -23,7 +23,7 @@ class Main extends BasicPage {
23 23
         message: '确定要退出登陆吗?',
24 24
         onConfirm: () {
25 25
           box.remove('token');
26
-          Get.offNamed('/login');
26
+          Get.offAllNamed('/login');
27 27
           return true;
28 28
         },
29 29
         onCancel: () => true);