2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00

fix: Cache router-view on route.path

This commit is contained in:
Faris Ansari 2019-12-05 00:11:29 +05:30
parent 83ce1cf5a8
commit 5f60740acc

View File

@ -2,8 +2,8 @@
<div class="flex"> <div class="flex">
<Sidebar class="w-56 flex-shrink-0" /> <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>
<router-view class="flex-1" :key="$route.fullPath" /> <router-view class="flex-1" :key="$route.path" />
</keep-alive> </keep-alive>
<div class="flex" v-if="showQuickEdit"> <div class="flex" v-if="showQuickEdit">
<keep-alive> <keep-alive>