去掉返回 #295
|
@ -4,14 +4,14 @@
|
|||
<Header />
|
||||
</el-header>
|
||||
<el-main>
|
||||
<template v-if="currentRoute.path != '/home'">
|
||||
<!-- <template v-if="currentRoute.path != '/home'">
|
||||
<el-page-header @back="goBack">
|
||||
<template #content>
|
||||
<span class="text-large mr-3"> {{ currentRoute.meta.title }} </span>
|
||||
</template>
|
||||
</el-page-header>
|
||||
</template>
|
||||
<AppMain :style="{ height: currentRoute.path == '/home' ? '100%' : 'calc(100% - 45px)'}" />
|
||||
</template> -->
|
||||
<AppMain />
|
||||
</el-main>
|
||||
<Uploader v-if="uploaderStore.uploadList && uploaderStore.uploadList.length > 0" />
|
||||
<AiChart/>
|
||||
|
@ -29,15 +29,15 @@ import uploaderState from '@/store/modules/uploader'
|
|||
import { ref } from 'vue'
|
||||
|
||||
const router = useRouter()
|
||||
const currentRoute = ref('')
|
||||
// const currentRoute = ref('')
|
||||
|
||||
watch(
|
||||
() => router.currentRoute.value,
|
||||
(newValue) => {
|
||||
currentRoute.value = newValue
|
||||
},
|
||||
{ immediate: true }
|
||||
)
|
||||
// watch(
|
||||
// () => router.currentRoute.value,
|
||||
// (newValue) => {
|
||||
// currentRoute.value = newValue
|
||||
// },
|
||||
// { immediate: true }
|
||||
// )
|
||||
|
||||
let uploaderStore = ref(uploaderState())
|
||||
|
||||
|
|
Loading…
Reference in New Issue