• This project
    • Loading...
  • Sign in

fe / yohoblk-wap · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohoblk-wap
  • src
  • store
  • yoho
  • index.js
  • vur ssr
    91415fce
    by 陈峰
    2017-09-11 14:33:40 +0800  
    Browse Files
index.js 465 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
import {
    SET_ENV,
    SET_TITLE
} from './types';

export default {
    state: {
        title: '',
        env: {
            isApp: true,
            isiOS: false,
            isAndroid: false,
            isYohoBuy: false,
            channel: 'men'
        }
    },
    mutations: {
        [SET_ENV](state, params) {
            state.env = params;
        },
        [SET_TITLE](state, params) {
            state.title = params.title;
        }
    }
};