Merge pull request '去掉返回' (#296) from lyc-dev into main

This commit is contained in:
lyc 2024-10-08 14:01:24 +08:00
commit 5e247006c5
2 changed files with 1 additions and 24 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -4,13 +4,6 @@
<Header />
</el-header>
<el-main>
<!-- <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 />
</el-main>
<Uploader v-if="uploaderStore.uploadList && uploaderStore.uploadList.length > 0" />
@ -19,32 +12,16 @@
</template>
<script setup>
import { watch } from 'vue'
import { ref } from 'vue'
import { useRouter } from 'vue-router'
import Header from './components/Header.vue'
import AppMain from './components/AppMain.vue'
import Uploader from './components/Uploader.vue'
import AiChart from '@/components/ai-chart/index.vue'
import uploaderState from '@/store/modules/uploader'
import { ref } from 'vue'
const router = useRouter()
// const currentRoute = ref('')
// watch(
// () => router.currentRoute.value,
// (newValue) => {
// currentRoute.value = newValue
// },
// { immediate: true }
// )
let uploaderStore = ref(uploaderState())
const goBack = () =>{
router.back()
}
</script>
<style lang="scss" scoped>