这个是一个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>