Commit 9e4c6b74 authored by “yiyousong”'s avatar “yiyousong”

pref:修改标题

parent 9feb2584
......@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= process.env.VUE_APP_sysName %></title>
<title></title>
</head>
<body>
<noscript>
......
......@@ -30,7 +30,7 @@
<script>
import Header from "./components/Header.vue";
import { getdeptList } from "@/api/department";
import { mapMutations } from "vuex";
import { mapMutations, mapState } from "vuex";
import local from "@/utils/local";
export default {
components: {
......@@ -38,11 +38,13 @@ export default {
},
data() {
return {
systemName: process.env.VUE_APP_sysName,
portalUrl: process.env.VUE_APP_API_portal_URL,
breads: [],
};
},
created() {
document.title = this.sysName ? this.sysName : this.systemName; // 设置项目标题
this.calcBreads();
this.getdeptList();
},
......@@ -51,7 +53,9 @@ export default {
this.calcBreads();
},
},
computed: {},
computed: {
...mapState(["sysName"]),
},
methods: {
...mapMutations(["SET_deptList"]),
// 计算面包屑
......
......@@ -9,7 +9,7 @@
@click="handleGoHome"
/>
<h1 class="title pointer" @click="handleGoHome">
{{ sysName || systemName }}
{{ sysName ? sysName : systemName }}
</h1>
<HeaderSite class="mr50 ml20"></HeaderSite>
<!-- 导航 -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment