--固定html标题
This commit is contained in:
@ -12,7 +12,8 @@
|
||||
import zhTW from 'ant-design-vue/lib/locale-provider/zh_TW';
|
||||
import { ConfigProvider } from 'ant-design-vue';
|
||||
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 { useAppStore } from '/@/store/modules/app';
|
||||
import 'dayjs/locale/zh-cn';
|
||||
@ -64,7 +65,8 @@
|
||||
});
|
||||
|
||||
// Listening to page changes and dynamically changing site titles
|
||||
useTitle();
|
||||
//useTitle();
|
||||
useTitle("广东能源集团天然气供应链平台");
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
:deep(.ant-tree-treenode),
|
||||
@ -83,10 +85,9 @@
|
||||
.vben-default-layout {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.vben-layout-content {
|
||||
flex: 1 !important;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
@ -58,7 +58,7 @@
|
||||
//设置Tab标题
|
||||
setTitle(desktopSchema.name);
|
||||
//设置浏览器标题
|
||||
useTitle(` ${desktopSchema.name} - ${title} `);
|
||||
//useTitle(` ${desktopSchema.name} - ${title} `);
|
||||
desktop.hasCustomDesktop = true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -703,7 +703,7 @@
|
||||
//设置Tab标题
|
||||
setTitle(configJson.menuConfig.name);
|
||||
//设置浏览器标题
|
||||
useTitle(` ${configJson.menuConfig.name} - ${title} `);
|
||||
// useTitle(` ${configJson.menuConfig.name} - ${title} `);
|
||||
//设置是否需要左侧菜单
|
||||
listConfig.value = configJson.listConfig!;
|
||||
listTitle.value = listConfig.value.listTitle || configJson.menuConfig.name;
|
||||
|
||||
Reference in New Issue
Block a user