fix(account): 本地化网络异常文案
This commit is contained in:
1 parent
9b3ab9d5de
commit
27ab7cebfb
5 files changed
+90
-11
No files matched your search
@@ -24,9 +24,7 @@ class AccountDevicesLogic extends ChangeNotifier {
|
||||
try {
|
||||
devices = await _repository.devices();
|
||||
} catch (failure) {
|
||||
error = failure is ApiException
|
||||
? failure.message
|
||||
: 'accountDevicesLoadFailed';
|
||||
error = failure is ApiException ? failure.message : 'networkError';
|
||||
} finally {
|
||||
loading = false;
|
||||
_notify();
|
||||
|
||||
Reference in new issue
Block a user