You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
648 B

/*
* @Author: your name
* @Date: 2021-11-22 15:34:24
* @LastEditTime: 2021-11-22 15:48:02
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /ansu-business/src/mixins/index.js
*/
import { mapGetters, mapActions } from "vuex";
export default {
install(Vue) {
Vue.mixin({
computed: {
...mapGetters(['getSelectedKeys', 'getOpenKeys'])
},
methods: {
...mapActions(['setSelectedKeys', 'setOpenKeys'])
}
})
}
}