mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
feat: 优化按路由导出多html的title逻辑
This commit is contained in:
parent
bd4eba275f
commit
0f0c646ced
@ -63,9 +63,9 @@ export default async function createHtmlWebpackConfig({
|
|||||||
const _fileName = `${route.path.slice(1) || 'index'}.html`;
|
const _fileName = `${route.path.slice(1) || 'index'}.html`;
|
||||||
if (_fileName !== 'index.html') {
|
if (_fileName !== 'index.html') {
|
||||||
const _htmlOptions = {
|
const _htmlOptions = {
|
||||||
title: 'fes.js',
|
|
||||||
filename: _fileName,
|
|
||||||
...config.html,
|
...config.html,
|
||||||
|
title: route?.meta?.title || config.html.title || 'fes.js',
|
||||||
|
filename: _fileName,
|
||||||
templateParameters: resolveDefine(config, true),
|
templateParameters: resolveDefine(config, true),
|
||||||
mountElementId: config.mountElementId
|
mountElementId: config.mountElementId
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user