first commit
This commit is contained in:
19
src/App.vue
Normal file
19
src/App.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<script setup>
|
||||
import { onMounted } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useWorkspaceStore } from './stores/workspace'
|
||||
|
||||
const router = useRouter()
|
||||
const workspaceStore = useWorkspaceStore()
|
||||
|
||||
onMounted(async () => {
|
||||
await workspaceStore.initWorkspace()
|
||||
if (!workspaceStore.path) {
|
||||
// No workspace selected, stay on welcome page
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<router-view />
|
||||
</template>
|
||||
Reference in New Issue
Block a user