mirror of
https://github.com/qinglong-app/qinglong_app.git
synced 2025-10-09 16:48:19 +08:00
add function
This commit is contained in:
@@ -6,14 +6,7 @@ class UserInfoViewModel {
|
||||
String? _token;
|
||||
String? _host = "";
|
||||
|
||||
static UserInfoViewModel? _userInfoViewModel;
|
||||
|
||||
static UserInfoViewModel getInstance() {
|
||||
_userInfoViewModel ??= UserInfoViewModel._();
|
||||
return _userInfoViewModel!;
|
||||
}
|
||||
|
||||
UserInfoViewModel._() {
|
||||
UserInfoViewModel() {
|
||||
String userInfoJson = SpUtil.getString(sp_UserINfo);
|
||||
_host = SpUtil.getString(sp_Host,defValue: "http://49.234.59.95:5700");
|
||||
if (userInfoJson.isNotEmpty) {
|
||||
|
||||
Reference in New Issue
Block a user