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

pref:修改标题

parent 9feb2584
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= process.env.VUE_APP_sysName %></title> <title></title>
</head> </head>
<body> <body>
<noscript> <noscript>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<script> <script>
import Header from "./components/Header.vue"; import Header from "./components/Header.vue";
import { getdeptList } from "@/api/department"; import { getdeptList } from "@/api/department";
import { mapMutations } from "vuex"; import { mapMutations, mapState } from "vuex";
import local from "@/utils/local"; import local from "@/utils/local";
export default { export default {
components: { components: {
...@@ -38,11 +38,13 @@ export default { ...@@ -38,11 +38,13 @@ export default {
}, },
data() { data() {
return { return {
systemName: process.env.VUE_APP_sysName,
portalUrl: process.env.VUE_APP_API_portal_URL, portalUrl: process.env.VUE_APP_API_portal_URL,
breads: [], breads: [],
}; };
}, },
created() { created() {
document.title = this.sysName ? this.sysName : this.systemName; // 设置项目标题
this.calcBreads(); this.calcBreads();
this.getdeptList(); this.getdeptList();
}, },
...@@ -51,7 +53,9 @@ export default { ...@@ -51,7 +53,9 @@ export default {
this.calcBreads(); this.calcBreads();
}, },
}, },
computed: {}, computed: {
...mapState(["sysName"]),
},
methods: { methods: {
...mapMutations(["SET_deptList"]), ...mapMutations(["SET_deptList"]),
// 计算面包屑 // 计算面包屑
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
@click="handleGoHome" @click="handleGoHome"
/> />
<h1 class="title pointer" @click="handleGoHome"> <h1 class="title pointer" @click="handleGoHome">
{{ sysName || systemName }} {{ sysName ? sysName : systemName }}
</h1> </h1>
<HeaderSite class="mr50 ml20"></HeaderSite> <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