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

Loading…
Cancel
Save