refactor: 给Canvas解耦合

This commit is contained in:
2025-07-09 15:55:49 +08:00
parent c5ce246caf
commit 91b00a977c
7 changed files with 768 additions and 650 deletions

View File

@@ -258,7 +258,7 @@ async function loadComponentModule(type: string) {
if (!componentModules.value[type]) {
try {
// 假设组件都在 src/components/equipments/ 目录下,且文件名与 type 相同
const module = await import(`../components/equipments/${type}.vue`);
const module = await import(`@/components/equipments/${type}.vue`);
// 将模块添加到缓存中
componentModules.value = {