Browse Source

退出修改;

master
ZHR007 3 months ago
parent
commit
814a40a358
2 changed files with 9 additions and 2 deletions
  1. 4
      lib/controller/discover/room_controller.dart
  2. 7
      lib/controller/setting/setting_controller.dart

4
lib/controller/discover/room_controller.dart

@ -330,6 +330,10 @@ class RoomController extends GetxController with WidgetsBindingObserver {
} }
Future<void> leaveChannel() async { Future<void> leaveChannel() async {
if(!isLive.value){
//
return;
}
// RTC // RTC
if (currentRole == CurrentRole.broadcaster) { if (currentRole == CurrentRole.broadcaster) {
try { try {

7
lib/controller/setting/setting_controller.dart

@ -77,8 +77,11 @@ class SettingController extends GetxController {
final conversationController = Get.find<ConversationController>(); final conversationController = Get.find<ConversationController>();
conversationController.clearConversations(); conversationController.clearConversations();
} }
//
storage.erase();
// App清除本地存储
// storage.erase();
storage.remove('userId');
storage.remove('token');
// storage.write('hasAgreedUserAgreement', true);
// //
GlobalData().logout(); GlobalData().logout();
} }

Loading…
Cancel
Save