logo和名称替换
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:hgmj/hj_page/live/live_service.dart';
|
||||
import 'package:wydj/hj_page/live/live_service.dart';
|
||||
|
||||
import 'live_model.dart';
|
||||
|
||||
@@ -26,7 +26,8 @@ class LiveMainLogic extends GetxController with GetTickerProviderStateMixin {
|
||||
loadData() async {
|
||||
liveMainModel = await LiveService.getLiveModuleList();
|
||||
if (liveMainModel != null) {
|
||||
if (liveMainModel?.module != null && liveMainModel?.module?.isNotEmpty == true) {
|
||||
if (liveMainModel?.module != null &&
|
||||
liveMainModel?.module?.isNotEmpty == true) {
|
||||
liveTabs.clear();
|
||||
liveTabs.add(LiveModule(id: '-1', title: '推荐')); //添加推荐数据
|
||||
liveTabs.addAll(liveMainModel?.module ?? []);
|
||||
|
||||
Reference in New Issue
Block a user