静态页面补充
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
import 'package:getx_scaffold/getx_scaffold.dart';
|
||||
import 'package:ln_jq_app/storage_service.dart';
|
||||
|
||||
import '../../login/view.dart';
|
||||
|
||||
class MineController extends GetxController with BaseControllerMixin {
|
||||
@override
|
||||
@@ -15,4 +18,10 @@ class MineController extends GetxController with BaseControllerMixin {
|
||||
void onClose() {
|
||||
super.onClose();
|
||||
}
|
||||
|
||||
void logout() async{
|
||||
await StorageService.to.clearLoginInfo();
|
||||
|
||||
Get.offAll(() => LoginPage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user