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