智慧保安互联网APP
zengh
2022-06-21 4efeb31d5b4921d7e851c256009486ad86bc70e2
store/index.js
@@ -17,7 +17,7 @@
const store = new Vuex.Store({
   // 下面这些值仅为示例,使用过程中请删除
   state: {
      // 如果上面从本地获取的lifeData对象下有对应的属性,就赋值给state中对应的变量
      userInfo: lifeData.userInfo ? lifeData.userInfo : {
         avatar: '',
@@ -33,45 +33,44 @@
         useName: '过客 ',
      },
      logPath: '',
      // piAPI: 'http://223.82.109.183:2080/api',
      piAPI: 'http://223.82.109.183:2082/api',
      // piAPI: 'http://localhost:82/',
      // piAPI: 'http://192.168.0.108:81',
      piAPI: 'http://61.131.136.25:2080/api',
      // piAPI: 'http://192.168.0.114:81',
      api: 'http://61.131.136.25:2080/api',
      // piAPI: 'http://localhost:83/',
      // piAPI: 'http://192.168.0.115:83',
      puserName: '',
      puserID: '',
      puserIphone:'',
      avatar:"../../static/logo.png",
      puserIphone: '',
      avatar: "../../static/logo.png",
      UserData: {},
      tabbar:[{
            iconPath: "/static/tabbar/index01.png",
            selectedIconPath: "/static/tabbar/index02.png",
            text: '首页',
            pagePath: "/pages/home/home"
      tabbar: [{
            pagePath: "pages/home/home",
            iconPath: "static/images/tabbar/home.png",
            selectedIconPath: "static/images/tabbar/home_selected.png",
            text: "首页"
         },
         {
            iconPath: "/static/tabbar/article.png",
            selectedIconPath: "/static/tabbar/articleH.png",
            text: '资讯',
            pagePath: "/pages/article/article"
            pagePath: "pages/groupChat/groupChat",
            iconPath: "static/images/tabbar/demo.png",
            selectedIconPath: "static/images/tabbar/demo_selected.png",
            text: "聊天"
         },
         {
            iconPath: "/static/tabbar/workbench.png",
            selectedIconPath: "/static/tabbar/workbenchH.png",
            text: '工作台',
            count: 2,
            isDot: false,
            pagePath: "/pages/business/business"
            pagePath: "pages/manage/manage",
            text: "工作台",
            iconPath: "static/tabbar/workbench.png",
            selectedIconPath: "static/tabbar/workbenchH.png"
         },
         {
            iconPath: "/static/tabbar/my.png",
            selectedIconPath: "/static/tabbar/my-blue.png",
            text: '我的',
            pagePath: "/pages/myself/myself"
         },
            pagePath: "pages/user/center",
            iconPath: "static/images/tabbar/user.png",
            selectedIconPath: "static/images/tabbar/user_selected.png",
            text: "我的"
         }
      ]
   },
   mutations: mutations,
   actions:actions
   actions: actions
})
export default store