store-vue
v1.5.0
Published
store-vue插件
Downloads
9
Readme
store-vue
这个是一个vue状态管理器、vue过滤、vue工具、MockJs的集合
安装
npm i store-vue
配置
//引入store-vue
import store from "store-vue"
new Vue({
store,
router,
render: h => h(App)
}).$mount('#app')
教程
例子
<template>
<div>{{dome | dome}}</div>
</template>
<script>
export default {
name: "Dome",
data(){
return {
dome:"dome"
}
},
mounted(){
//action
this.action({
moduleName:"moduleName",
//...
})
//airforce
this.airforce
//utils
this.utils
//api
this.api
}
}
</script>
<style scoped>
</style>