• This project
    • Loading...
  • Sign in

Hooke / demo-vue-vuex

Itomix
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • demo-vue-vuex
  • src
  • components
  • module.vue
  • Hooke's avatar
    add module · 63e6af9f
    63e6af9f
    Hooke authored 2016-10-30 16:19:31 +0800
module.vue 303 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
<template lang="html">
<div>
  moduleA: {{moduleA}}
  moduleB: {{moduleB}}
</div>
</template>

<script>
export default {
  computed: {
    moduleA(){
      return this.$store.state.a.module
    },
    moduleB(){
      return this.$store.state.b.module
    }
  }
}
</script>

<style lang="css">
</style>