diff --git a/src/components/login/login.ts b/src/components/login/login.ts index 7c6e7e5..4ab8e7b 100644 --- a/src/components/login/login.ts +++ b/src/components/login/login.ts @@ -2,6 +2,7 @@ import {Component, Vue} from 'vue-property-decorator'; import Constants from '@/constants'; import App from '@/components/app/app'; import VersionUtils from '@/logic/utils/version-utils'; +import LoginUser from '@/logic/login-user'; /** * This component handles user login, and obtains data from the server. @@ -90,7 +91,7 @@ export default class Login extends Vue this.$cookies.set('va.version', Constants.VERSION, '27d'); // Call a custom event with the token - this.$emit('login:user', response.data); + this.$emit('login:user', new LoginUser(response.data.user)); } else { diff --git a/tsconfig.json b/tsconfig.json index e14dd9f..ebe84ba 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,9 +15,7 @@ "webpack-env" ], "paths": { - "@/*": [ - "src/*" - ] + "@/*": ["src/*"] }, "lib": [ "esnext",