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