|
|
|
@ -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);
|
|
|
|
|
},
|
|
|
|
|