From 84d17b81bb3afb87e5db2a58141fac1bd8256832 Mon Sep 17 00:00:00 2001 From: ogerly Date: Wed, 10 Mar 2021 12:50:29 +0100 Subject: [PATCH] WIP - add post to community --- community_server | 2 +- frontend/src/App.vue | 19 +++--- frontend/src/store/store.js | 4 +- .../src/views/KontoOverview/GddAddWork.vue | 67 +++++++++++++------ frontend/yarn.lock | 9 ++- login_server | 2 +- 6 files changed, 70 insertions(+), 33 deletions(-) diff --git a/community_server b/community_server index cfc0af844..36ddbba58 160000 --- a/community_server +++ b/community_server @@ -1 +1 @@ -Subproject commit cfc0af844dcb1832993fdb6126493adb443960be +Subproject commit 36ddbba5815435575b2d3c1270d738ccabc9eb54 diff --git a/frontend/src/App.vue b/frontend/src/App.vue index d89ca100d..da80c328f 100755 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -17,19 +17,21 @@ import icon from "./icon.js"; export default { name: 'app', components: { - ParticlesBg, + ParticlesBg }, created () { //console.log("this.$cookies.get('gdd_session_id') ", this.$cookies.get('gdd_session_id') ) - //console.log(" $cookies.isKey('gdd_session_id') == true", this.$cookies.isKey("gdd_session_id") == true ) - if ( this.$cookies.get('gdd_session_id') == this.$store.state.session_id ) { - //this.$store.state.email = this.$cookies.get('gdd_u') + console.log(" $cookies.isKey('gdd_session_id') ", this.$cookies.isKey("gdd_session_id") ) + if ( this.$cookies.isKey('gdd_session_id') ) { + //this.$store.state.email = this.$cookies.get('gdd_u') + console.log("login to kontooverview") this.$router.push('/KontoOverview') }else { + console.log("login to LOGIN") this.$router.push("/Login") } }, - data: function () { + data() { return { config: { num: [1, 7], @@ -51,12 +53,11 @@ export default {