refactor: optimize module navigation delay and clean up unused code in splash and auth logic
fix : role access to chicken app
This commit is contained in:
@@ -65,6 +65,17 @@ class GService extends GetxService {
|
||||
return getTargetPage(module)?.route;
|
||||
}
|
||||
|
||||
Future<void> clearRoute(Module module) async {
|
||||
AppModel model = box.values.first;
|
||||
TargetPage? targetPage = model.targetPages?.firstWhereOrNull(
|
||||
(element) => element.module == module,
|
||||
);
|
||||
if (targetPage != null) {
|
||||
targetPage.route = null;
|
||||
model.save();
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> saveRole(Module module, String role) async {
|
||||
AppModel model = box.values.first;
|
||||
TargetPage? targetPage = model.targetPages?.firstWhere(
|
||||
|
||||
Reference in New Issue
Block a user