feat:更新代办事项存储功能
This commit is contained in:
@@ -18,10 +18,9 @@ void main() async{
|
||||
Hive.registerAdapter(TodoAdapter());
|
||||
|
||||
// 打开Box
|
||||
await Hive.openBox<Todo>('todos');
|
||||
final todosBox = await Hive.openBox<Todo>('todos');
|
||||
|
||||
final appDir = await getApplicationDocumentsDirectory();
|
||||
print('📁 Hive数据库路径: ${appDir.path}');
|
||||
todosBox.clear();
|
||||
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user