Conditional Rendering
This commit is contained in:
@@ -142,7 +142,7 @@ const footerLinks = [/*{
|
|||||||
</UDashboardSidebar>
|
</UDashboardSidebar>
|
||||||
</UDashboardPanel>
|
</UDashboardPanel>
|
||||||
|
|
||||||
<UDashboardPage style="height: 92vh">
|
<UDashboardPage style="height: 80vh">
|
||||||
<UDashboardPanel grow>
|
<UDashboardPanel grow>
|
||||||
<slot />
|
<slot />
|
||||||
</UDashboardPanel>
|
</UDashboardPanel>
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ const dataStore = useDataStore()
|
|||||||
const supabase = useSupabaseClient()
|
const supabase = useSupabaseClient()
|
||||||
|
|
||||||
const type = route.params.type
|
const type = route.params.type
|
||||||
const platform = useCapacitor().getIsPhone() ? "mobile" : "default"
|
const platform = await useCapacitor().getIsPhone() ? "mobile" : "default"
|
||||||
|
console.log(platform)
|
||||||
|
|
||||||
|
|
||||||
const dataType = dataStore.dataTypes[route.params.type]
|
const dataType = dataStore.dataTypes[route.params.type]
|
||||||
@@ -24,7 +24,7 @@ const item = ref({})
|
|||||||
|
|
||||||
const setupPage = async () => {
|
const setupPage = async () => {
|
||||||
|
|
||||||
if(platform === "mobile") {
|
if(await useCapacitor().getIsPhone()) {
|
||||||
setPageLayout("mobile")
|
setPageLayout("mobile")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user