<template>
  <router-view :key="$route.fullPath"></router-view>
</template>

<script>
import { mapActions } from "vuex";
import { clearBodyClass } from "@utilities/utilities";

export default {
  data() {
    return {
      userLastStateIsLoaded: true,
      modalComponentName: "",
      actionMode: 1,
    };
  },

  methods: {
    ...mapActions(["setBodyClass", "getState"]),
  },

  beforeCreate() {
    ApiService.init(process.env.VUE_APP_LIST_BASE_URL);
  },
  beforeMount() {
    clearBodyClass();
  },
  mounted() {
    this.setBodyClass(process.env.VUE_APP_TASK_SYSTEM);
    document.title = process.env.VUE_APP_CHAT_PAGE_TITLE;
  },
  destroyed() {
    clearBodyClass();
  },
};
</script>

<style lang="scss">
@import "../../assets/task/scss/task";
</style>
