diff --git a/src/lycomponents/iHeader/index.vue b/src/lycomponents/iHeader/index.vue index ac1696b..18ceb0f 100644 --- a/src/lycomponents/iHeader/index.vue +++ b/src/lycomponents/iHeader/index.vue @@ -34,7 +34,7 @@
- +
@@ -44,7 +44,7 @@ {{ week }} {{getUser.UserName}} - + @@ -107,6 +107,10 @@ export default { } }, methods: { + goHome() { + this.setHeaderType(1); + this.$router.push("/index"); + }, handleChange(val) { this.setCommTime({ sTimeType: val }); this.reload(); diff --git a/src/lycomponents/iHeaderBrand/index.vue b/src/lycomponents/iHeaderBrand/index.vue index 4efe0a8..b60ff77 100644 --- a/src/lycomponents/iHeaderBrand/index.vue +++ b/src/lycomponents/iHeaderBrand/index.vue @@ -36,7 +36,7 @@ @@ -121,6 +121,10 @@ export default { } }, methods: { + goHome() { + this.setHeaderType(1); + this.$router.push("/index"); + }, // 获取选择时间的数据 getSelect() { getTwoTime().then((res) => { diff --git a/src/lycomponents/iHeaderMa/index.vue b/src/lycomponents/iHeaderMa/index.vue index 5d92bed..35e9780 100644 --- a/src/lycomponents/iHeaderMa/index.vue +++ b/src/lycomponents/iHeaderMa/index.vue @@ -32,7 +32,7 @@ @@ -111,6 +111,10 @@ export default { } }, methods: { + goHome() { + this.setHeaderType(1); + this.$router.push("/index"); + }, // 获取选择时间的数据 getSelect() { getCheZhuTime0528().then(res => { diff --git a/src/store/getters.js b/src/store/getters.js index d43a793..7d34dc1 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -20,6 +20,8 @@ const getters = { return state.user }, getAccount(state) { + //这里写解密算法 + state.account.sPwd = window.atob(state.account.sPwd); return state.account }, getCommTime(state) { diff --git a/src/store/mutations.js b/src/store/mutations.js index 189aa62..9db370d 100644 --- a/src/store/mutations.js +++ b/src/store/mutations.js @@ -6,6 +6,7 @@ * @Description: In User Settings Edit * @FilePath: /data-show/src/store/mutations.js */ +//import {encryptByDES} from "./des"; const mutations = { setZoom: (state, log) => { state.$zoom = log; @@ -24,6 +25,7 @@ const mutations = { }, setAccount: (state, log) => { state.account = log; + state.account.sPwd = window.btoa(state.account.sPwd); let str = JSON.stringify(log); localStorage.setItem('account', str); },