feat: upload and download bitstream from the component of project view

This commit is contained in:
2025-05-13 18:14:57 +08:00
parent eae67d04d4
commit eea03f5bc8
15 changed files with 4243 additions and 1365 deletions

View File

@@ -1,7 +1,10 @@
<script setup lang="ts">
import Navbar from "./components/Navbar.vue";
import Dialog from "./components/Dialog.vue";
import { ref, provide, onMounted } from "vue";
import { ref, provide, computed, onMounted } from "vue";
import { useRouter } from "vue-router";
const router = useRouter();
// 主题切换状态管理
const isDarkMode = ref(
@@ -42,6 +45,10 @@ provide("theme", {
isDarkMode,
toggleTheme,
});
const currentRoutePath = computed(() => {
return router.currentRoute.value.path;
});
</script>
<template>
@@ -54,7 +61,7 @@ provide("theme", {
<main>
<RouterView />
</main>
<footer class="footer footer-center p-4 bg-base-300 text-base-content">
<footer v-if="currentRoutePath != '/project'" class="footer footer-center p-4 bg-base-300 text-base-content">
<div>
<p>Copyright © 2023 - All right reserved by OurEDA</p>
</div>