First commit
This commit is contained in:
Executable
+27
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<Progress
|
||||
v-show="routerStatus.isLoad"
|
||||
class="router-progress"
|
||||
:size="6"
|
||||
/>
|
||||
|
||||
<main>
|
||||
<RouterView
|
||||
:key="$route.fullPath"
|
||||
/>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.router-progress {
|
||||
position: fixed;
|
||||
inset: 0.5rem 0.5rem 0 auto;
|
||||
z-index: 9999;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { RouterView } from "vue-router";
|
||||
import routerStatus from "@/lib/router";
|
||||
import Progress from "@/components/Progress.vue";
|
||||
</script>
|
||||
Reference in New Issue
Block a user