flutter/lib/utils/common.dart

17 lines
253 B
Dart
Raw Normal View History

2025-07-21 15:46:30 +08:00
/// 封装公共方法
library;
import './storage.dart';
class Common {
/// 判断是否登录
2025-08-21 10:50:38 +08:00
static bool isLogin() {
2025-07-21 15:46:30 +08:00
return Storage.hasData('hasLogged');
}
/// 退出登录
static logout() {
Storage.clear();
}
}