Merge branch 'master' of http://10.20.2.7:8080/r/~enchantedwyf/vbvs_app
This commit is contained in:
@@ -241,8 +241,8 @@ class _BluetoothPageState extends State<BluetoothPage> {
|
||||
context, '体征传感器', "/vitalSignsSensorPage",
|
||||
arguments: obsData),
|
||||
_buildMenuButton(context, 'WIFI配置', ""),
|
||||
_buildMenuButton(
|
||||
context, '睡眠习惯', "/sleepHabitPage"),
|
||||
// _buildMenuButton(
|
||||
// context, '睡眠习惯', "/sleepHabitPage"),
|
||||
_buildMenuButton(
|
||||
context, '分享设备', "/deviceSharePage",
|
||||
arguments: obsData),
|
||||
@@ -406,6 +406,11 @@ class _BluetoothPageState extends State<BluetoothPage> {
|
||||
if (onTap != null) {
|
||||
onTap(); // 自定义点击逻辑优先执行
|
||||
} else if (path?.isNotEmpty == true) {
|
||||
if (path == "/sleepHabitPage") {
|
||||
WebviewTestController webviewTestController = Get.find();
|
||||
webviewTestController.web.jsbridge?.dart.toSleepHabit();
|
||||
return;
|
||||
}
|
||||
final result = await Get.toNamed(path!, arguments: arguments);
|
||||
if (result != null && onResult != null) {
|
||||
onResult(result); // ✅ 有回调就处理返回值
|
||||
|
||||
Reference in New Issue
Block a user