--固定html标题
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||||
<meta name="renderer" content="webkit" />
|
<meta name="renderer" content="webkit" />
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" />
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" />
|
||||||
<title></title>
|
<title>广东能源集团天然气供应链平台</title>
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@ -12,7 +12,8 @@
|
|||||||
import zhTW from 'ant-design-vue/lib/locale-provider/zh_TW';
|
import zhTW from 'ant-design-vue/lib/locale-provider/zh_TW';
|
||||||
import { ConfigProvider } from 'ant-design-vue';
|
import { ConfigProvider } from 'ant-design-vue';
|
||||||
import { AppProvider } from '/@/components/Application';
|
import { AppProvider } from '/@/components/Application';
|
||||||
import { useTitle } from '/@/hooks/web/useTitle';
|
//import { useTitle } from '/@/hooks/web/useTitle';
|
||||||
|
import { useTitle } from '@vueuse/core';
|
||||||
import { useLocale } from '/@/locales/useLocale';
|
import { useLocale } from '/@/locales/useLocale';
|
||||||
import { useAppStore } from '/@/store/modules/app';
|
import { useAppStore } from '/@/store/modules/app';
|
||||||
import 'dayjs/locale/zh-cn';
|
import 'dayjs/locale/zh-cn';
|
||||||
@ -64,7 +65,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Listening to page changes and dynamically changing site titles
|
// Listening to page changes and dynamically changing site titles
|
||||||
useTitle();
|
//useTitle();
|
||||||
|
useTitle("广东能源集团天然气供应链平台");
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
:deep(.ant-tree-treenode),
|
:deep(.ant-tree-treenode),
|
||||||
@ -83,10 +85,9 @@
|
|||||||
.vben-default-layout {
|
.vben-default-layout {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vben-layout-content {
|
.vben-layout-content {
|
||||||
flex: 1 !important;
|
flex: 1 !important;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -58,7 +58,7 @@
|
|||||||
//设置Tab标题
|
//设置Tab标题
|
||||||
setTitle(desktopSchema.name);
|
setTitle(desktopSchema.name);
|
||||||
//设置浏览器标题
|
//设置浏览器标题
|
||||||
useTitle(` ${desktopSchema.name} - ${title} `);
|
//useTitle(` ${desktopSchema.name} - ${title} `);
|
||||||
desktop.hasCustomDesktop = true;
|
desktop.hasCustomDesktop = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -703,7 +703,7 @@
|
|||||||
//设置Tab标题
|
//设置Tab标题
|
||||||
setTitle(configJson.menuConfig.name);
|
setTitle(configJson.menuConfig.name);
|
||||||
//设置浏览器标题
|
//设置浏览器标题
|
||||||
useTitle(` ${configJson.menuConfig.name} - ${title} `);
|
// useTitle(` ${configJson.menuConfig.name} - ${title} `);
|
||||||
//设置是否需要左侧菜单
|
//设置是否需要左侧菜单
|
||||||
listConfig.value = configJson.listConfig!;
|
listConfig.value = configJson.listConfig!;
|
||||||
listTitle.value = listConfig.value.listTitle || configJson.menuConfig.name;
|
listTitle.value = listConfig.value.listTitle || configJson.menuConfig.name;
|
||||||
|
|||||||
Reference in New Issue
Block a user