mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-31 09:12:10 +08:00
修复固定header后没有回到顶部的bug,修复拉取项目后运行不起来的bug
This commit is contained in:
parent
ea5dccebe6
commit
25fa3536de
@ -3,9 +3,9 @@
|
|||||||
<ColumnsAside />
|
<ColumnsAside />
|
||||||
<div class="layout-columns-warp">
|
<div class="layout-columns-warp">
|
||||||
<Aside />
|
<Aside />
|
||||||
<el-container class="flex-center layout-backtop">
|
<el-container class="flex-center layout-backtop" :class="{'layout-backtop':!isFixedHeader}">
|
||||||
<Header v-if="isFixedHeader" />
|
<Header v-if="isFixedHeader" />
|
||||||
<el-scrollbar>
|
<el-scrollbar :class="{'layout-backtop':isFixedHeader}">
|
||||||
<Header v-if="!isFixedHeader" />
|
<Header v-if="!isFixedHeader" />
|
||||||
<Main />
|
<Main />
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-container class="layout-container">
|
<el-container class="layout-container">
|
||||||
<Aside />
|
<Aside />
|
||||||
<el-container class="flex-center layout-backtop">
|
<el-container class="flex-center" :class="{'layout-backtop':!isFixedHeader}">
|
||||||
<Header v-if="isFixedHeader" />
|
<Header v-if="isFixedHeader" />
|
||||||
<el-scrollbar ref="layoutDefaultsScrollbarRef">
|
<el-scrollbar ref="layoutDefaultsScrollbarRef" :class="{'layout-backtop':isFixedHeader}">
|
||||||
<Header v-if="!isFixedHeader" />
|
<Header v-if="!isFixedHeader" />
|
||||||
<Main />
|
<Main />
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
@ -23,7 +23,7 @@ export default {
|
|||||||
name: 'layoutDefaults',
|
name: 'layoutDefaults',
|
||||||
components: { Aside, Header, Main },
|
components: { Aside, Header, Main },
|
||||||
setup() {
|
setup() {
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy }:any = getCurrentInstance();
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const isFixedHeader = computed(() => {
|
const isFixedHeader = computed(() => {
|
||||||
|
@ -10,7 +10,7 @@ const pathResolve = (dir: string): any => {
|
|||||||
const { VITE_PORT, VITE_OPEN, VITE_PUBLIC_PATH } = loadEnv();
|
const { VITE_PORT, VITE_OPEN, VITE_PUBLIC_PATH } = loadEnv();
|
||||||
|
|
||||||
const alias: Record<string, string> = {
|
const alias: Record<string, string> = {
|
||||||
'/@': pathResolve('/src/'),
|
'/@': pathResolve('./src/'),
|
||||||
'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js',
|
'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user