Merge branch 'master' of https://git.moguyn.cn/Miku/vuex
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<!--moguyun-->
|
||||
<template>
|
||||
<div>
|
||||
<my-add></my-add>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<!--moguyun-->
|
||||
<template>
|
||||
<div>
|
||||
<h3>当前最新的count值为:{{$store.state.count}}</h3>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<!--moguyun-->
|
||||
<template>
|
||||
<div>
|
||||
<h3>当前最新的count值为:{{count}}</h3>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//moguyun
|
||||
import Vue from 'vue'
|
||||
import App from './App.vue'
|
||||
import store from './store'
|
||||
@@ -7,4 +8,4 @@ Vue.config.productionTip = false
|
||||
new Vue({
|
||||
store,
|
||||
render: h => h(App)
|
||||
}).$mount('#app')
|
||||
}).$mount('#app1')
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//moguyun
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user