feat:资源备份
This commit is contained in:
1 parent
e191cad606
commit
a92732310e
6 files changed
+124
-47
No files matched your search
@@ -2,6 +2,7 @@ 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';
|
||||
|
||||
@@ -49,6 +50,10 @@ class AppControl extends GetxController {
|
||||
serialCardManage = SerialCardManage();
|
||||
srialSteelyardManage = SerialSteelyardManage();
|
||||
AppNetworkTool.listenNetwork();
|
||||
await AppFileTool.setDatabasePath(
|
||||
await getDatabasesPath(),
|
||||
);
|
||||
await AppFileTool.backupSqlFile();
|
||||
Get.offAllNamed(RouteNames.login);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user