Features: 1) Simplify layout hydration using client:only="vue" for Vue components;
Fixes: None; Extra: 1) Remove unused composables and their function calls to streamline default layout; 2) Minor cleanup including unnecessary newline removal in plugins entry file;
This commit is contained in:
parent
6894015954
commit
7d154f9302
3 changed files with 3 additions and 20 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
<template>
|
||||
<div style="display: none;"></div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -1,22 +1,7 @@
|
|||
---
|
||||
import AppInitializer from "@/components/app-initializer.vue";
|
||||
import {useRefresh} from "@/composables/auth";
|
||||
import {useCompanyInfo} from "@/composables/company";
|
||||
import {useLanguages} from "@/composables/languages/index.js";
|
||||
import BaseHeader from "@/components/base/header/base-header.vue";
|
||||
import BaseFooter from "@/components/base/base-footer.vue";
|
||||
|
||||
const { refresh } = useRefresh();
|
||||
const { getCompanyInfo } = useCompanyInfo();
|
||||
const { getLanguages } = useLanguages();
|
||||
|
||||
await refresh();
|
||||
await getCompanyInfo();
|
||||
await getLanguages();
|
||||
|
||||
setInterval(async () => {
|
||||
await refresh();
|
||||
}, 600000);
|
||||
---
|
||||
|
||||
<html lang="en">
|
||||
|
|
@ -29,10 +14,10 @@ setInterval(async () => {
|
|||
</head>
|
||||
<body>
|
||||
<main class="main">
|
||||
<BaseHeader client:load />
|
||||
<BaseHeader client:only="vue" />
|
||||
<slot />
|
||||
<BaseFooter client:load />
|
||||
<AppInitializer client:load />
|
||||
<BaseFooter client:only="vue" />
|
||||
<AppInitializer client:only="vue" />
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import { createApolloClient } from "../apollo/index.js";
|
|||
import { DefaultApolloClient } from "@vue/apollo-composable";
|
||||
import ElementPlus from 'element-plus';
|
||||
|
||||
|
||||
export default function (app) {
|
||||
app.use(pinia);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue