实现动态浏览器标签

This commit is contained in:
zhanghan11 2024-09-27 15:59:06 +08:00
parent 0af2a8b43b
commit 98be671392

View File

@ -5,6 +5,7 @@
</template>
<script>
import Cookies from "js-cookie";
export default {
name: "App",
metaInfo() {
@ -13,7 +14,7 @@ export default {
this.$store.state.settings.dynamicTitle &&
this.$store.state.settings.title,
titleTemplate: (title) => {
return ""; //title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
return Cookies.get("systemName") || ""; //title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
},
};
},
@ -36,7 +37,8 @@ export default {
</script>
<style lang="scss">
@import "@/theme/index.scss";
.el-picker-panel__sidebar, .el-picker-panel__footer {
.el-picker-panel__sidebar,
.el-picker-panel__footer {
@include font_color(buttonFontColor);
@include background_color(componentBackgroundColor);
}
@ -44,7 +46,8 @@ export default {
.el-message-box {
@include background_bg(dialogBackgroundImage);
@include font_color(colorPrimary);
.el-message-box__header, .el-message-box__content {
.el-message-box__header,
.el-message-box__content {
@include font_color(colorPrimary);
}
}