Skip to content

Commit 301906b

Browse files
author
piexlmax
committed
修改vite2.9.9的情况下右侧白页问题
1 parent 282d681 commit 301906b

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

web/src/core/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const viteLogo = (env) => {
4848
)
4949
console.log(
5050
chalk.green(
51-
`> 如果项目让您获得了收益,希望您能请团队喝杯可乐:https://www.github.com/flipped-aurora/gin-vue-admin/server.com/docs/coffee`
51+
`> 如果项目让您获得了收益,希望您能请团队喝杯可乐:https://www.gin-vue-admin.com/docs/coffee`
5252
)
5353
)
5454
console.log('\n')

web/src/view/layout/index.vue

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@
7979
</div>
8080
</transition>
8181
<router-view v-if="reloadFlag" v-slot="{ Component }" v-loading="loadingFlag" element-loading-text="正在加载中" class="admin-box">
82-
<transition mode="out-in" name="el-fade-in-linear">
83-
<keep-alive :include="routerStore.keepAliveRouters">
84-
<component :is="Component" />
85-
</keep-alive>
86-
</transition>
82+
<div>
83+
<transition mode="out-in" name="el-fade-in-linear">
84+
<keep-alive :include="routerStore.keepAliveRouters">
85+
<component :is="Component" />
86+
</keep-alive>
87+
</transition>
88+
</div>
8789
</router-view>
8890
<BottomInfo />
8991
<setting />
@@ -120,6 +122,11 @@ const routerStore = useRouterStore()
120122
const isCollapse = ref(false)
121123
const isSider = ref(true)
122124
const isMobile = ref(false)
125+
126+
const cc = (e) => {
127+
console.log(e)
128+
}
129+
123130
const initPage = () => {
124131
const screenWidth = document.body.clientWidth
125132
if (screenWidth < 1000) {

0 commit comments

Comments
 (0)