feat: upload and download bitstream from the component of project view
This commit is contained in:
11
src/App.vue
11
src/App.vue
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user