/* * @Author: your name * @Date: 2021-10-12 13:37:50 * @LastEditTime: 2021-12-10 14:22:06 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: /data-show/src/store/state.js */ import {giveToken, giveMenu} from "@/utils/auth" const state = { $zoom: 1, loading: false, token: giveToken() || sessionStorage.getItem('token') || "", user: JSON.parse(sessionStorage.getItem('user')) || {}, account: JSON.parse(localStorage.getItem('account')) || {}, commTime: JSON.parse(sessionStorage.getItem('commTime')) || { sTimeType: 34 }, ctime: JSON.parse(sessionStorage.getItem('ctime')) || {sTimeType:4,sStartTime:"2021-08-01 00:00:00",sEndTime:"2021-08-31 23:59:59"}, ctime2: JSON.parse(sessionStorage.getItem('ctime2')) || { sTimeType: 34, sStartTime: "", sEndTime: "" }, headerType: sessionStorage.getItem('headerType') || 1, brand: JSON.parse(sessionStorage.getItem('brand')) || {}, model: JSON.parse(sessionStorage.getItem('model')) || {}, bComparison: JSON.parse(sessionStorage.getItem('bComparison')) || [], sComparison: JSON.parse(sessionStorage.getItem('sComparison')) || [], changeSTime: 1, mComparison: JSON.parse(sessionStorage.getItem('mComparison')) || [], eComparison: JSON.parse(sessionStorage.getItem('eComparison')) || [], levelBtn: JSON.parse(sessionStorage.getItem('levelBtn')) || [], menu: giveMenu() || JSON.parse(sessionStorage.getItem('menu')) || [], } export default state;