提交 fccf1e16 编写于 作者: ibizdev's avatar ibizdev

lab_gzf 部署微服务应用

上级 4ce76ce6
...@@ -203,6 +203,18 @@ export default class AppIndexViewModel { ...@@ -203,6 +203,18 @@ export default class AppIndexViewModel {
* @memberof AppIndexViewModel * @memberof AppIndexViewModel
*/ */
private funcs: any[] = [ private funcs: any[] = [
{
appfunctag: '_2',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'eamlocationstategridview',
deResParameters: [],
routepath: '/appindexview/:appindexview?/eamlocationstates/:eamlocationstate?/gridview/:gridview?',
parameters: [
{ pathName: 'eamlocationstates', parameterName: 'eamlocationstate' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
},
]; ];
/** /**
......
...@@ -16,20 +16,15 @@ module.exports = { ...@@ -16,20 +16,15 @@ module.exports = {
compress: true, compress: true,
disableHostCheck: true, disableHostCheck: true,
// proxy: "http://127.0.0.1:8080/AssetManagement", // proxy: "http://127.0.0.1:8080/AssetManagement",
historyApiFallback: {
rewrites: [
{ from: /^\/appindexview$/, to: '/appindexview.html' },
]
}
}, },
pages: { pages: {
appindexview: { index: {
// page 的入口 // page 的入口
entry: 'src/pages/base/app-index-view/main.ts', entry: 'src/pages/base/app-index-view/main.ts',
// 模板来源 // 模板来源
template: 'src/template.html', template: 'src/template.html',
// 在 dist/index.html 的输出 // 在 dist/index.html 的输出
filename: 'appindexview.html', filename: 'index.html',
// 当使用 title 选项时, // 当使用 title 选项时,
// template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title> // template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
title: '应用首页视图', title: '应用首页视图',
...@@ -41,8 +36,10 @@ module.exports = { ...@@ -41,8 +36,10 @@ module.exports = {
// 多核打包 // 多核打包
parallel: os.cpus().length > 1, parallel: os.cpus().length > 1,
chainWebpack: (config) => { chainWebpack: (config) => {
config.plugins.delete('preload-appindexview') // 删除自动计算预加载资源
config.plugins.delete('prefetch-appindexview') config.plugins.delete('preload-index')
// 删除预加载资源
config.plugins.delete('prefetch-index')
config.resolve.alias config.resolve.alias
.set('@ibizsys', resolve('src/ibizsys')) .set('@ibizsys', resolve('src/ibizsys'))
.set('@pages', resolve('src/pages')) .set('@pages', resolve('src/pages'))
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册