Skip to content

Commit dd984b0

Browse files
author
310198
committed
修正加入three.js库后出现: "export 'Math2' was not found in 'three' 错误问题。
1 parent 0634085 commit dd984b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/js/cwaves.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
SpriteMaterial,
1111
Object3D,
1212
Sprite,
13-
Math2
13+
Math as Math2
1414
} from 'three';
1515
const SEPARATION = 100, AMOUNTX = 50, AMOUNTY = 50; // 圆点间隔、x轴方向个数、y轴方向个数
1616
const waveStep = 0.04; // 波动速度

0 commit comments

Comments
 (0)