fix(runtime): checkout table_token(store.state.tableNumber!) -> tableNumber ?? ''. 普通网购用户无餐桌号(null)时崩溃. desktop L309/mobile L284. Fixes checkout/310 Unexpected null value

This commit is contained in:
2026-08-01 02:36:01 +08:00
parent 95e40f31cc
commit 3f9256491d
3 changed files with 7 additions and 2 deletions

View File

@@ -33,6 +33,11 @@ import 'utils/utils.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
FlutterError.onError = (details) {
FlutterError.presentError(details);
print('CK_ERROR: ${details.exceptionAsString()}');
print('CK_STACK: ${details.stack}');
};
// Enable configureApp will cause route problem.
// configureApp();
setPathUrlStrategy();