⚗ Lazy component import

This commit is contained in:
Liyas Thomas
2019-11-16 00:25:05 +05:30
parent 23a681f214
commit 69971198af
13 changed files with 29 additions and 67 deletions

View File

@@ -318,16 +318,14 @@ label {
</style>
<script>
import VirtualList from "vue-virtual-scroll-list";
import section from "./section";
import { findStatusGroup } from "../pages/index";
const updateOnLocalStorage = (propertyName, property) =>
window.localStorage.setItem(propertyName, JSON.stringify(property));
export default {
components: {
"pw-section": section,
VirtualList
"pw-section": () => import("./section"),
VirtualList: () => import("vue-virtual-scroll-list")
},
data() {
const localStorageHistory = JSON.parse(