扩展氢能站点、加氢记录与台账原型链路,新增工作台、车辆资产 H5、自营物流等原型,并同步导航注册、PRD 资源与交付技能。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user