fix abModel multi request and state didn't refresh bug

This commit is contained in:
csf 2022-10-09 19:41:50 +09:00
parent 672d5f31d0
commit 8d23c11312
11 changed files with 111 additions and 230 deletions

View file

@ -24,8 +24,9 @@ class AbModel {
FFI? get _ffi => parent.target;
Future<dynamic> pullAb() async {
if (_ffi!.userModel.userName.isEmpty) return;
abLoading.value = true;
// request
abError.value = "";
final api = "${await bind.mainGetApiServer()}/api/ab/get";
try {
final resp =