clearCurrentNasInfo static method

Future<void> clearCurrentNasInfo()

清除保存的NAS设备信息

Implementation

static Future<void> clearCurrentNasInfo() async {
  try {
    final prefs = await SharedPreferences.getInstance();
    await prefs.remove(_nasDeviceKey);
    _currentNasDevice = null;
    log('清除保存的NAS设备信息');
  } catch (e) {
    log('清除NAS设备信息失败: $e');
  }
}