feat:修改图片路径
This commit is contained in:
@@ -150,7 +150,7 @@ class AdditionDraw extends BaseDrawService {
|
||||
// 加载图片
|
||||
let image: any = null;
|
||||
try {
|
||||
const imagePath = `/mathPages/assets/${config.folder}/${imageConfigItem.imageIndex}.png`;
|
||||
const imagePath = `/mathPages/shared/assets/${config.folder}/${imageConfigItem.imageIndex}.png`;
|
||||
image = await getImage(canvas, imagePath);
|
||||
} catch (error) {
|
||||
console.error('图片加载失败:', error);
|
||||
|
||||
Reference in New Issue
Block a user