Browse Source

屏蔽 micro

master
巴林闲侠 2 years ago
parent
commit
0894325751
  1. 5
      code/web/client/src/app.jsx
  2. 8
      code/web/client/src/public-path.js

5
code/web/client/src/app.jsx

@ -15,7 +15,10 @@ const App = props => {
return (
<Layout
title={projectName}
sections={[Auth, MicroApp]}
sections={[
Auth,
// MicroApp
]}
/>
)
}

8
code/web/client/src/public-path.js

@ -1,5 +1,7 @@
// __MICRO_APP_ENVIRONMENT__和__MICRO_APP_PUBLIC_PATH__是由micro-app注入的全局变量
if (window.__MICRO_APP_ENVIRONMENT__) {
// eslint-disable-next-line
__webpack_public_path__ = window.__MICRO_APP_PUBLIC_PATH__
}
// eslint-disable-next-line
__webpack_public_path__ = window.__MICRO_APP_PUBLIC_PATH__
} else {
__webpack_public_path__ = '/'
}
Loading…
Cancel
Save