修正 Web Mock 代码生成提示

Tauri 不可用的内存存储不再伪报代码生成成功

统一返回明确的当前环境不支持生成代码错误
This commit is contained in:
2026-09-01 15:27:55 +08:00
parent 7fb6692793
commit 7d88e58e35
@@ -90,12 +90,7 @@ export const uiDesignStateStore: IUiDesignStateStore = {
};
},
async generateCode() {
return {
relativePath: 'ui/generated-ui-design.js',
treeExports: [],
treeCount: 0,
nodeCount: 0,
};
throw new Error('当前环境不支持生成代码');
},
};