扩展氢能站点、加氢记录与台账原型链路,新增工作台、车辆资产 H5、自营物流等原型,并同步导航注册、PRD 资源与交付技能。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
王冕
2026-07-21 17:15:39 +08:00
parent e39df1c7c8
commit a01d2ab708
242 changed files with 102296 additions and 4866 deletions

View File

@@ -511,9 +511,12 @@ import { bootstrapOneOsTheme } from ${JSON.stringify('@/common/oneos-app-shell/t
bootstrapOneOsTheme({ prototypeId: ${JSON.stringify(name)} });
`
: '';
// Use namespace + default fallback: raw CJS react/index.js has no ESM default export.
// Vite usually rewrites to .vite/deps with interop, but some preview graphs skip that.
return `
import React from 'react';
import * as __AxhubReactNS from 'react';
import { createRoot } from 'react-dom/client';
const React = __AxhubReactNS.default || __AxhubReactNS;
import PreviewComponent from ${JSON.stringify(importPath)};
${oneOsThemeBootstrap}
class AxhubPreviewErrorBoundary extends React.Component {