Compare commits
9 Commits
755c790ff2
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| a068612944 | |||
| ff901ef6ea | |||
| c729146239 | |||
| 4caa51bf2e | |||
| 1ee817e8c0 | |||
| 85baf1d950 | |||
| 8aca717b0c | |||
| 44b5cc1298 | |||
| 150cd1c4d0 |
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "vuex_demo1",
|
"name": "vuex_demo1_1",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<noscript>
|
<noscript>
|
||||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||||
</noscript>
|
</noscript>
|
||||||
<div id="app"></div>
|
<div id="app1"></div>
|
||||||
<!-- built files will be auto injected -->
|
<!-- built files will be auto injected -->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,19 +1,24 @@
|
|||||||
|
<!--moguyun-->
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<my-add></my-add>
|
<my-add></my-add>
|
||||||
<p>-----------------------------------------</p>
|
<p>-----------------------------------------</p>
|
||||||
<my-sub></my-sub>
|
<my-sub></my-sub>
|
||||||
|
<p>-----------------------------------------</p>
|
||||||
|
<box></box>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import add from './components/add.vue'
|
import add from './components/add.vue'
|
||||||
import sub from "./components/sub.vue"
|
import sub from "./components/sub.vue"
|
||||||
|
import box from './components/box.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components:{
|
components:{
|
||||||
"my-add":add,
|
"my-add":add,
|
||||||
"my-sub":sub
|
"my-sub":sub,
|
||||||
|
box
|
||||||
},
|
},
|
||||||
data(){
|
data(){
|
||||||
return{
|
return{
|
||||||
@@ -25,4 +30,4 @@ export default {
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<!--moguyun-->
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h3>当前最新的count值为:{{$store.state.count}}</h3>
|
<h3>当前最新的count值为:{{$store.state.count}}</h3>
|
||||||
|
|||||||
20
vuex_demo1/src/components/box.vue
Normal file
20
vuex_demo1/src/components/box.vue
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
这是box组件,测试,test
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data(){
|
||||||
|
return{ }
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
|
||||||
|
},
|
||||||
|
computed:{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<!--moguyun-->
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h3>当前最新的count值为:{{count}}</h3>
|
<h3>当前最新的count值为:{{count}}</h3>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//moguyun
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import store from './store'
|
import store from './store'
|
||||||
@@ -7,4 +8,4 @@ Vue.config.productionTip = false
|
|||||||
new Vue({
|
new Vue({
|
||||||
store,
|
store,
|
||||||
render: h => h(App)
|
render: h => h(App)
|
||||||
}).$mount('#app')
|
}).$mount('#app1')
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//moguyun
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Vuex from 'vuex'
|
import Vuex from 'vuex'
|
||||||
|
|
||||||
|
|||||||
1
vuex_demo1/test.txt
Normal file
1
vuex_demo1/test.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
测试远程dev分支
|
||||||
Reference in New Issue
Block a user