17 lines
423 B
Dart
17 lines
423 B
Dart
import 'package:get/get.dart';
|
|
import 'package:wgshare/common/mixins/request_tool_mixin.dart';
|
|
import 'package:wgshare/common/store/user_store.dart';
|
|
|
|
import '../../routes/app_routes.dart';
|
|
import 'user_state.dart';
|
|
|
|
class UserLogic extends GetxController with RequestToolMixin {
|
|
final UserState state = UserState();
|
|
|
|
/// 退出登录
|
|
void logout(){
|
|
UserStore.to.erase();
|
|
Get.toNamed(Routes.loginPage);
|
|
}
|
|
}
|