Browse Source

vuex引入错误bug修改

master
aBin 3 years ago
parent
commit
d5fe65ab2b
  1. 14
      src/views/layout/Layout.vue

14
src/views/layout/Layout.vue

@ -11,7 +11,7 @@
<script>
import { Navbar, Sidebar, AppMain, TagsView } from './components'
import { GET_ALL_HAVE } from '@/api/jurisdiction'
// import { GET_ALL_HAVE } from '@/api/jurisdiction'
import ResizeMixin from './mixin/ResizeHandler'
import { mapMutations } from 'vuex'
@ -41,16 +41,16 @@ export default {
}
},
methods: {
...mapMutations('SET_PER_LIST'),
...mapMutations(['SET_PER_LIST']),
handleClickOutside() {
this.$store.dispatch('closeSideBar', { withoutAnimation: false })
},
getPerList() {
GET_ALL_HAVE({}).then(res => {
console.log(res)
})
}
// getPerList() {
// GET_ALL_HAVE({}).then(res => {
// console.log(res)
// })
// }
}
}
</script>

Loading…
Cancel
Save