|
|
|
@ -16,6 +16,7 @@ import {
|
|
|
|
|
useApi, |
|
|
|
|
useNuxtApp, |
|
|
|
|
useUIPermission, |
|
|
|
|
useGlobal |
|
|
|
|
} from '#imports' |
|
|
|
|
|
|
|
|
|
definePageMeta({ |
|
|
|
@ -32,6 +33,8 @@ const filterQuery = ref('')
|
|
|
|
|
|
|
|
|
|
const projects = ref<ProjectType[]>() |
|
|
|
|
|
|
|
|
|
const { appInfo, } = $(useGlobal()) |
|
|
|
|
|
|
|
|
|
const loadProjects = async () => { |
|
|
|
|
const response = await api.project.list({}) |
|
|
|
|
projects.value = response.list |
|
|
|
@ -177,7 +180,7 @@ onBeforeMount(loadProjects)
|
|
|
|
|
</div> |
|
|
|
|
</a-menu-item> |
|
|
|
|
|
|
|
|
|
<a-menu-item> |
|
|
|
|
<a-menu-item v-if="appInfo.connectToExternalDB"> |
|
|
|
|
<div |
|
|
|
|
v-e="['c:project:create:extdb']" |
|
|
|
|
class="nc-project-menu-item group nc-create-external-db-project" |
|
|
|
|