You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.7 KiB

/*
* @Author: your name
* @Date: 2021-10-12 13:37:50
* @LastEditTime: 2022-02-11 10:05:01
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/store/state.js
*/
import LS from 'cz-storage'
const state = {
$zoom: 1,
loading: false,
token: LS.get('token') || "",
user:LS.get('user') ? JSON.parse(LS.get('user')) : {},
account:JSON.parse(localStorage.getItem('account')) || {},
commTime:LS.get('commTime') ? JSON.parse(LS.get('commTime')) : { sTimeType: 34 },
ctime:LS.get('ctime') ? JSON.parse(LS.get('ctime')) : {sTimeType:4,sStartTime:"2021-08-01 00:00:00",sEndTime:"2021-08-31 23:59:59"},
ctime2:LS.get('ctime2') ? JSON.parse(LS.get('ctime2')) : { sTimeType: 34, sStartTime: "", sEndTime: "" },
headerType: LS.get('headerType') || 1,
brand: LS.get('brand') ? JSON.parse(LS.get('brand')) : {},
model:LS.get('model') ? JSON.parse(LS.get('model')) : {},
bComparison: LS.get('bComparison') ? JSON.parse(LS.get('bComparison')) : [],
bcStatus:LS.get('bcStatus') ? JSON.parse(LS.get('bcStatus')) : false,
scStatus: LS.get('scStatus') ? JSON.parse(LS.get('scStatus')) : false,
sComparison:LS.get('sComparison') ? JSON.parse(LS.get('sComparison')) : [],
changeSTime: 1,
mComparison: LS.get('mComparison') ? JSON.parse(LS.get('mComparison')) : [],
mcStatus:LS.get('mcStatus') ? JSON.parse(LS.get('mcStatus')) : false,
eComparison:LS.get('eComparison') ? JSON.parse(LS.get('eComparison')) : [],
tComparison:LS.get('tComparison') ? JSON.parse(LS.get('tComparison')) : [], //主题对比
levelBtn:LS.get('levelBtn') ? JSON.parse(LS.get('levelBtn')) : [],
menu: LS.get('menu') ? JSON.parse(LS.get('menu')) : [],
}
export default state;