Commit e917fcc2 authored by 李鹏 's avatar 李鹏

modify logo

parent 74871b38
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
}"> }">
<!-- LOGO --> <!-- LOGO -->
<router-link to="/" class="bg-logo"> <router-link to="/" class="bg-logo">
<img
style="width: 22px; height: 22px"
:src="systemLogo ? JSON.parse(systemLogo)[0].url : getImageUrl('img_logo.png')" />
<span>智能运维管理平台</span> <span>智能运维管理平台</span>
</router-link> </router-link>
...@@ -82,6 +85,7 @@ ...@@ -82,6 +85,7 @@
import { mapState, mapMutations } from "vuex"; import { mapState, mapMutations } from "vuex";
import { clearCookie } from "../services/cookie.js"; import { clearCookie } from "../services/cookie.js";
import { resetRouter } from "../router/index"; import { resetRouter } from "../router/index";
import { getImageUrl } from "@/services/helper.js";
import { normalizeProps } from "vue-demi"; import { normalizeProps } from "vue-demi";
export default { export default {
...@@ -95,6 +99,7 @@ export default { ...@@ -95,6 +99,7 @@ export default {
}, },
data() { data() {
return { return {
getImageUrl,
documentScrollTop: 0, documentScrollTop: 0,
cartList: [], cartList: [],
showCart: true, showCart: true,
...@@ -158,6 +163,9 @@ export default { ...@@ -158,6 +163,9 @@ export default {
return temp; return temp;
}, },
}), }),
systemLogo() {
return this.$store.state.systemLogo;
},
}, },
watch: { watch: {
nameFlag(n, o) { nameFlag(n, o) {
......
...@@ -90,6 +90,7 @@ const getSysOptions = () => { ...@@ -90,6 +90,7 @@ const getSysOptions = () => {
if (res.data.code == 200) { if (res.data.code == 200) {
const result = res.data.data; const result = res.data.data;
configOptions.value = result; configOptions.value = result;
store.commit("setSystemLogo", configOptions.value.logo);
if (result.license_dead_date && result.license_inform_day) { if (result.license_dead_date && result.license_inform_day) {
calculateValidityDays( calculateValidityDays(
new Date().getTime(), new Date().getTime(),
......
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