111
This commit is contained in:
1 parent
aa39211aba
commit
76f97a2e7a
23 files changed
+226
-294
No files matched your search
@@ -2,7 +2,6 @@ import 'dart:async';
|
||||
import 'package:event_bus/event_bus.dart';
|
||||
|
||||
import 'package:get/get.dart';
|
||||
import 'package:sqflite/sqflite.dart';
|
||||
|
||||
import 'package:pj_supermarket_cloud/common/index.dart';
|
||||
|
||||
@@ -35,7 +34,7 @@ class AppControl extends GetxController {
|
||||
serialCardManage.close();
|
||||
srialSteelyardManage.close();
|
||||
AppNetworkTool.closeListenNetwork();
|
||||
TtsManage.dispose();
|
||||
// TtsManage.dispose();
|
||||
}
|
||||
|
||||
Future<void> initAsync() async {
|
||||
@@ -44,11 +43,8 @@ class AppControl extends GetxController {
|
||||
serialCardManage = SerialCardManage();
|
||||
srialSteelyardManage = SerialSteelyardManage();
|
||||
AppNetworkTool.listenNetwork();
|
||||
await AppFileTool.setDatabasePath(
|
||||
await getDatabasesPath(),
|
||||
);
|
||||
await AppFileTool.backupSqlFile();
|
||||
await TtsManage.initialize();
|
||||
// await AppFileTool.backupSqlFile();
|
||||
// await TtsManage.initialize();
|
||||
Get.offAllNamed(RouteNames.login);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user