mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 06:36:53 +00:00
* fix: get rid of barrel files * chore: get rid of explicit imports * fix: use explicit import for classes and enums * fix: use explicit import for enum & class & aliases * fix: build issues
14 lines
335 B
TypeScript
14 lines
335 B
TypeScript
export function useDashboard() {
|
|
const router = useRouter()
|
|
|
|
const route = router.currentRoute
|
|
|
|
const dashboardUrl = computed(() => {
|
|
// todo: test in different scenarios
|
|
// get source path of app
|
|
return `${location.origin}${(location.pathname || '').replace(route.value.path, '')}`
|
|
})
|
|
|
|
return { dashboardUrl }
|
|
}
|