Commit 0b5f3de7 authored by 邓晓峰's avatar 邓晓峰

fix: 升级wisdom-cesium版本

parent fb3dc96f
Pipeline #49605 skipped with stages
......@@ -89,7 +89,7 @@
"@babel/polyfill": "7.4.3",
"@babel/preset-typescript": "^7.12.1",
"@babel/runtime": "^7.10.5",
"@wisdom-cesium/cesium": "^1.0.29",
"@wisdom-cesium/cesium": "^1.0.78",
"@wisdom-map/Amap": "^1.0.49-18",
"@wisdom-map/arcgismap": "^1.0.79-32",
"@wisdom-map/Map": "^1.0.12-32",
......
......@@ -19,8 +19,8 @@ const app = express();
// In production we need to pass these values in instead of relying on webpack
setup(app, {
outputPath: resolve(process.cwd(), 'build'),
publicPath: '/',
outputPath: resolve(process.cwd(), 'civmanage'),
publicPath: process.env.NODE_ENV === 'production' ?'/civmanage': '/',
});
// get the intended host and port number, use localhost and port 3000 if not provided
......
......@@ -4,13 +4,14 @@ const compression = require('compression');
module.exports = function addProdMiddlewares(app, options) {
const publicPath = options.publicPath || '/';
const outputPath = options.outputPath || path.resolve(process.cwd(), 'build');
const outputPath = options.outputPath || path.resolve(process.cwd(), 'civmanage');
const { addProxyMiddleware } = require('../proxy');
// compression middleware compresses your server responses which makes them
// smaller (applies also to assets). You can read more about that technique
// and other good practices on official Express.js docs http://mxs.is/googmy
app.use(compression());
app.use(publicPath, express.static(outputPath));
addProxyMiddleware(app)
app.get('*', (req, res) =>
res.sendFile(path.resolve(outputPath, 'index.html')),
......
......@@ -36,9 +36,9 @@ const SchemeConfig = () => {
<TabPane tab="方案配置" key="4">
<SolutionConfig />
</TabPane>
{/* <TabPane tab="范围配置" key="5">
<TabPane tab="范围配置" key="5">
<ScopeMap />
</TabPane> */}
</TabPane>
</Tabs>
</div>
</PageContainer>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment