| 1234567891011121314151617181920212223242526 |
- import { currentProfile } from '../services'
-
- const pidMixin = {
- props: {
- pid: {
- type: Number,
- required: true,
- validator: prop => typeof prop === 'number' || prop === null,
- },
- },
- }
-
- const profileMixin = {
- computed: {
- profile() {
- return currentProfile
- },
- isLoading() {
- return currentProfile.isLoading
- },
- isLoggedIn() {
- return currentProfile.isLoggedIn
- },
- },
- }
- export { pidMixin, profileMixin }
|