46b6767c
刘淇
init 提交到库
|
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { mapState, mapActions } from 'pinia'
import { useCounterStore } from '@/stores/counter'
const AppMixin = {
computed: {
...mapState(useCounterStore, ['isLogin', 'userInfo', 'userToken', 'config', 'noticeNum'])
},
methods: {
...mapActions(useCounterStore, ['login', 'loginOut', 'setUserInfo', 'setConfig', 'setNoticeNum'])
}
}
export default AppMixin
|