fix
This commit is contained in:
12
src/App.vue
12
src/App.vue
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<!-- <RouteCache /> -->
|
||||
<router-view v-if="show"></router-view>
|
||||
<router-view></router-view>
|
||||
<div id="loading" v-if="loading" v-loading="true"></div>
|
||||
</template>
|
||||
|
||||
@@ -22,19 +22,15 @@
|
||||
window['onClickRegister'] = () => {
|
||||
router.push({ name: 'register' })
|
||||
}
|
||||
const show = ref(true)
|
||||
provide('reload', () => {
|
||||
show.value = false
|
||||
nextTick(() => {
|
||||
show.value = true
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
#app {
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
.el-message{
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
#loading {
|
||||
position: fixed;
|
||||
z-index: 999999999;
|
||||
|
||||
Reference in New Issue
Block a user