Browse Source

创建失败返回。

jiaxiaoqiang 3 months ago
parent
commit
4e24fddada
1 changed files with 1 additions and 0 deletions
  1. 1 0
      entry/src/main/ets/pages/CameraVersion2.ets

+ 1 - 0
entry/src/main/ets/pages/CameraVersion2.ets

@@ -232,6 +232,7 @@ struct Index {
                     index = (index + 1) % 10;
                   } catch(error) {
                     console.error(TAG, "创建PixelMap失败:", error);
+                    router.back()
                     // break
                   }
                 }