Skip to content

Commit

Permalink
chore: 目录注销
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe committed Apr 24, 2024
1 parent 1cbc42e commit 84622af
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
19 changes: 16 additions & 3 deletions app.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
<script setup lang="ts">
const globalStore = useGlobalStore()
const route = useRoute()
watch(
() => route.path,

Check failure on line 6 in app.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 2 spaces
() => {

Check failure on line 7 in app.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 2 spaces
globalStore.setCatalog([])

Check failure on line 8 in app.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 2 tabs but found 4 spaces
},

Check failure on line 9 in app.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 2 spaces
)
</script>

<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<NuxtLayout>

Check failure on line 14 in app.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected "\t" character, but found " " character
<NuxtPage />

Check failure on line 15 in app.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected "\t" character, but found " " character
</NuxtLayout>

Check failure on line 16 in app.vue

View workflow job for this annotation

GitHub Actions / testCodebase

Expected "\t" character, but found " " character
</template>

<style>
.page-enter-active,
.page-leave-active {
transition: all 0.4s;
}
.page-enter-from,
.page-leave-to {
opacity: 0;
Expand Down
4 changes: 3 additions & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const flows = await $client.flow.list.query()
const config = await useGetConfig()
const globalStore = useGlobalStore()
globalStore.setCatalog(flows.map(x => ({ title: x.title, anchor: x.title, active: false })))
onMounted(() => {
globalStore.setCatalog(flows.map(x => ({ title: x.title, anchor: x.title, active: false })))
})
provide('flows', flows)
Expand Down

0 comments on commit 84622af

Please sign in to comment.