Skip to content

Commit

Permalink
mod: 未开发功能关闭入口
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhigq committed Oct 3, 2024
1 parent 832609e commit 0c858e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pages/whisper/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class WhisperController extends GetxController {
},
{
'icon': Icons.alternate_email,
'title': '@ 我的',
'title': '@我的',
'path': '/messageAt',
'count': 0,
},
Expand Down
6 changes: 6 additions & 0 deletions lib/pages/whisper/view.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:easy_debounce/easy_throttle.dart';
import 'package:flutter/material.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:get/get.dart';
import 'package:pilipala/common/constants.dart';
import 'package:pilipala/common/skeleton/skeleton.dart';
Expand Down Expand Up @@ -70,6 +71,11 @@ class _WhisperPageState extends State<WhisperPage> {
..._whisperController.noticesList.map((element) {
return InkWell(
onTap: () {
if (['/messageAt', '/messageSystem']
.contains(element['path'])) {
SmartDialog.showToast('功能开发中');
return;
}
Get.toNamed(element['path']);

if (element['count'] > 0) {
Expand Down

0 comments on commit 0c858e7

Please sign in to comment.