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