mirror of
https://github.com/frappe/books.git
synced 2025-03-31 07:22:21 +00:00
fix: move logic to computed
This commit is contained in:
parent
5df933308d
commit
df2d292c78
@ -1,13 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<Sidebar class="w-56" />
|
<Sidebar class="w-56 flex-shrink-0" />
|
||||||
<div class="flex flex-1 overflow-y-hidden bg-white">
|
<div class="flex flex-1 overflow-y-hidden bg-white">
|
||||||
<keep-alive include="InvoiceForm">
|
<keep-alive include="InvoiceForm">
|
||||||
<router-view class="flex-1" :key="$route.fullPath" />
|
<router-view class="flex-1" :key="$route.fullPath" />
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
<div class="flex" v-if="$route.query.edit && $route.query.doctype && $route.query.name">
|
<div class="flex" v-if="showQuickEdit">
|
||||||
<keep-alive>
|
<keep-alive>
|
||||||
<router-view name="edit" class="w-80 flex-1" :key="$route.query.doctype + $route.query.name"/>
|
<router-view
|
||||||
|
name="edit"
|
||||||
|
class="w-80 flex-1"
|
||||||
|
:key="$route.query.doctype + $route.query.name"
|
||||||
|
/>
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -19,6 +23,15 @@ export default {
|
|||||||
name: 'Desk',
|
name: 'Desk',
|
||||||
components: {
|
components: {
|
||||||
Sidebar
|
Sidebar
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
showQuickEdit() {
|
||||||
|
return (
|
||||||
|
this.$route.query.edit &&
|
||||||
|
this.$route.query.doctype &&
|
||||||
|
this.$route.query.name
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user