Skip to content

系统数据

Vuex 数据获取示例

js
import { mapActions, mapGetters } from 'vuex';

computed: {
  ...mapGetters(['primaryColor', 'userInfo', 'screenWidth', '...'])
}

系统数据字段表

字段说明类型默认值
primaryColor当前主题颜色Srting-
userInfo当前登录用户信息Object-
language当前使用语言Srting-
screenWidth视窗宽度Number-
screenHeight视窗高度Number-
tableSize表格大小Srting-
tablePageSizetable 默认页容量Number-
btnMode按钮模式Srting-
formMode表单打开模式Srting-
echartsColor默认颜色Array-
tableLists所有表数据Array-
multiTab多页签Boolean-
systemInfo系统数据Object-