Skip to content

Commit a22f403

Browse files
committed
【SDK】【Mapbox】【优化错误提示】
1 parent b640ed6 commit a22f403

File tree

1 file changed

+2
-1
lines changed
  • src/service/PlotBase/Animation/AnimationTypes/PlotExtendAnimation/PlotGrowAnimation

1 file changed

+2
-1
lines changed

src/service/PlotBase/Animation/AnimationTypes/PlotExtendAnimation/PlotGrowAnimation/PlotPathAnimation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export default class PlotPathAnimation extends PlotCoordsAnimation {
6767
}
6868

6969
if (this._cacheCoords.length === 0) {
70-
throw new Error('路径动画控制点数量不能为0');
70+
console.error('路径动画控制点数量不能为0');
71+
return;
7172
}
7273

7374
if (this._cacheCoords.length === 1) {

0 commit comments

Comments
 (0)