mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
fixed changed from main branch in developckutls
This commit is contained in:
@@ -1,32 +1,3 @@
|
|||||||
<script>
|
|
||||||
import '@/assets/css/ComponentsStyles/header.css'
|
|
||||||
// import { GetAuthCodeFromCurrentPath } from '@/assets/js/authentication/LoggingMiddleware.js';
|
|
||||||
import { LogIn } from '@/assets/js/authentication/AuthService.js';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
name: 'Header-Element-page',
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
balance: 25000,
|
|
||||||
auth: false
|
|
||||||
}
|
|
||||||
}, created() {
|
|
||||||
try {
|
|
||||||
let authCode = this.$route.query.code;
|
|
||||||
console.log('Auth Code:', authCode);
|
|
||||||
|
|
||||||
if (authCode) {
|
|
||||||
const data = LogIn(authCode);
|
|
||||||
console.log('Auth Data:', data);
|
|
||||||
} else {
|
|
||||||
console.log('Auth Code отсутствует');
|
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Ошибка при аутентификации:', error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<template>
|
<template>
|
||||||
<header class="header">
|
<header class="header">
|
||||||
<div class="header__content">
|
<div class="header__content">
|
||||||
@@ -69,9 +40,9 @@ export default {
|
|||||||
</header>
|
</header>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
<script>
|
<script>
|
||||||
import '@/assets/css/ComponentsStyles/header.css'
|
import '@/assets/css/ComponentsStyles/header.css'
|
||||||
|
import { LogIn } from '@/assets/js/authentication/AuthService.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Header-Element-page',
|
name: 'Header-Element-page',
|
||||||
@@ -84,6 +55,21 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.route = this.$route.name
|
this.route = this.$route.name
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
try {
|
||||||
|
let authCode = this.$route.query.code;
|
||||||
|
console.log('Auth Code:', authCode);
|
||||||
|
|
||||||
|
if (authCode) {
|
||||||
|
const data = LogIn(authCode);
|
||||||
|
console.log('Auth Data:', data);
|
||||||
|
} else {
|
||||||
|
console.log('Auth Code отсутствует');
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Ошибка при аутентификации:', error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user