fix:#25 fixed router bug

This commit is contained in:
Elmar Kresse
2024-01-18 21:54:29 +01:00
parent 5102d3bea4
commit 6b695102d3
5 changed files with 67 additions and 35 deletions

View File

@@ -24,11 +24,10 @@ const hasContent = computed(() => {
</script>
<template>
<div
class="flex flex-column align-items-center mt-0"
>
<div class="flex align-items-center justify-content-center gap-2 mx-2 transition-rolldown"
:class="{'md:mt-8': hideContent}"
<div class="flex flex-column align-items-center mt-0">
<div
class="flex align-items-center justify-content-center gap-2 mx-2 transition-rolldown"
:class="{ 'md:mt-8': hideContent }"
>
<h3 class="text-4xl">
{{ headline }}
@@ -74,7 +73,7 @@ const hasContent = computed(() => {
</template>
<style scoped>
.transition-rolldown {
transition: margin-top 0.5s ease-in-out;
}
.transition-rolldown {
transition: margin-top 0.5s ease-in-out;
}
</style>

View File

@@ -1,16 +1,13 @@
<script lang="ts" setup>
import { computed, inject, Ref, ref } from "vue";
import { Module } from "../../model/module.ts";
import { Module } from "@/model/module.ts";
import moduleStore from "../../store/moduleStore";
import { fetchAllModules } from "../../api/fetchCourse.ts";
import {
deleteIndividualFeed,
saveIndividualFeed,
} from "../../api/createFeed.ts";
import { fetchAllModules } from "@/api/fetchCourse.ts";
import { deleteIndividualFeed, saveIndividualFeed } from "@/api/createFeed.ts";
import tokenStore from "../../store/tokenStore";
import router from "../../router";
import router from "@/router";
import ModuleTemplateDialog from "../../components/ModuleTemplateDialog.vue";
import { onlyWhitespace } from "../../helpers/strings.ts";
import { onlyWhitespace } from "@/helpers/strings.ts";
import { useI18n } from "vue-i18n";
import { useToast } from "primevue/usetoast";
const { t } = useI18n({ useScope: "global" });
@@ -18,6 +15,13 @@ const { t } = useI18n({ useScope: "global" });
const toast = useToast();
const visible = ref(false);
defineProps({
class: {
type: String,
default: "",
},
});
const store = moduleStore();
const tableData = computed(() =>