!14 修复固定header后没有回到顶部的bug,修复拉取项目后运行不起来的bug

Merge pull request !14 from wjs0509/master
This commit is contained in:
lyt-Top 2021-08-21 09:42:43 +00:00 committed by Gitee
commit a4da51c179
4 changed files with 9 additions and 9 deletions

View File

@ -3,9 +3,9 @@
<ColumnsAside />
<div class="layout-columns-warp">
<Aside />
<el-container class="flex-center layout-backtop">
<el-container class="flex-center layout-backtop" :class="{'layout-backtop':!isFixedHeader}">
<Header v-if="isFixedHeader" />
<el-scrollbar>
<el-scrollbar :class="{'layout-backtop':isFixedHeader}">
<Header v-if="!isFixedHeader" />
<Main />
</el-scrollbar>

View File

@ -1,9 +1,9 @@
<template>
<el-container class="layout-container">
<Aside />
<el-container class="flex-center layout-backtop">
<el-container class="flex-center" :class="{'layout-backtop':!isFixedHeader}">
<Header v-if="isFixedHeader" />
<el-scrollbar ref="layoutDefaultsScrollbarRef">
<el-scrollbar ref="layoutDefaultsScrollbarRef" :class="{'layout-backtop':isFixedHeader}">
<Header v-if="!isFixedHeader" />
<Main />
</el-scrollbar>
@ -23,7 +23,7 @@ export default {
name: 'layoutDefaults',
components: { Aside, Header, Main },
setup() {
const { proxy } = getCurrentInstance();
const { proxy }:any = getCurrentInstance();
const store = useStore();
const route = useRoute();
const isFixedHeader = computed(() => {

View File

@ -30,9 +30,9 @@
class="mt15"
:pager-count="5"
:page-sizes="[10, 20, 30]"
:current-page="tableData.param.pageNum"
v-model:current-page="tableData.param.pageNum"
background
:page-size="tableData.param.pageSize"
v-model:page-size="tableData.param.pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="tableData.total"
>
@ -84,7 +84,7 @@ export default {
};
//
const onHandleCurrentChange = (val: number) => {
state.tableData.param.pageSize = val;
state.tableData.param.pageNum = val;
};
//
onMounted(() => {

View File

@ -10,7 +10,7 @@ const pathResolve = (dir: string): any => {
const { VITE_PORT, VITE_OPEN, VITE_PUBLIC_PATH } = loadEnv();
const alias: Record<string, string> = {
'/@': pathResolve('/src/'),
'/@': pathResolve('./src/'),
'vue-i18n': 'vue-i18n/dist/vue-i18n.cjs.js',
};