diff --git a/scripts/dev.sh b/scripts/dev.sh index 7cc9680..446d8eb 100644 --- a/scripts/dev.sh +++ b/scripts/dev.sh @@ -153,7 +153,9 @@ start_app() { log_info "编译并启动 Flutter Web..." cd /g/nj/app - D:/flutter/bin/flutter.bat run -d chrome --web-port=$APP_PORT & + # --web-renderer html: 使用浏览器原生渲染,避免 CanvasKit 从 Google Fonts CDN 加载中文字体 + # 面向中国国内市场,不可依赖外部 CDN + D:/flutter/bin/flutter.bat run -d chrome --web-port=$APP_PORT --web-renderer html & log_info "等待学生端就绪..." for i in $(seq 1 30); do