2018-10-23 12:42:36 +00:00
|
|
|
<template>
|
2019-10-03 13:46:12 +00:00
|
|
|
<div class="flex">
|
2019-10-04 18:00:51 +00:00
|
|
|
<Sidebar class="w-56" />
|
2019-10-04 20:18:10 +00:00
|
|
|
<div class="flex flex-1 overflow-y-hidden">
|
2019-10-11 09:55:50 +00:00
|
|
|
<keep-alive exclude="ListView">
|
|
|
|
<router-view class="flex-1" :key="$route.fullPath" />
|
|
|
|
</keep-alive>
|
|
|
|
<div class="flex" v-if="$route.query.edit && $route.query.doctype && $route.query.name">
|
|
|
|
<keep-alive>
|
|
|
|
<router-view name="edit" class="w-80 flex-1" :key="$route.query.doctype + $route.query.name"/>
|
|
|
|
</keep-alive>
|
|
|
|
</div>
|
2018-10-23 12:42:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import Sidebar from '../components/Sidebar';
|
|
|
|
export default {
|
|
|
|
name: 'Desk',
|
|
|
|
components: {
|
|
|
|
Sidebar
|
|
|
|
}
|
2019-07-19 13:24:31 +00:00
|
|
|
};
|
2018-10-23 12:42:36 +00:00
|
|
|
</script>
|