• This project
    • Loading...
  • Sign in

monitor_v3 / hg-monitor-web · Files

Go to a project
11818 11818 11818 qq%e5%9b%be%e7%89%87 08 03 14 04 40

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
master-mj
  • hg-monitor-web
  • website
  • src
  • app.js
  • 公司网站模板 添加Vue
    af11750b
    by wangtao
    3 years ago  
    Browse Files
app.js 492 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
// import { Set_Count, Set_Count_sy } from './store/mutation-types.js'

export default {
    name: 'app',
    setup() {
        const store = Vuex.useStore()

        // 状态的控制事件
        const setCount = () => {
            store.commit('setCount')
            store.commit('setTime')
            store.commit('setArray')
            // store._mutations.setCount[0] // 这是什么?
        }

        return {
            // 设置state
            setCount
        }
    }
}