index.js 123 B

123456789
  1. export const state = () => ({
  2. counter: 0
  3. })
  4. export const mutations = {
  5. equal (state,val) {
  6. state.counter=val
  7. }
  8. }