This commit is contained in:
duanxiaohai 2024-08-06 13:42:06 +08:00
parent 1011b01aa7
commit 43157fccbc
2 changed files with 9 additions and 12 deletions

View File

@ -8,14 +8,14 @@
<!-- <keep-alive include="首页地图"> <!-- <keep-alive include="首页地图">
<router-view /> <router-view />
</keep-alive> --> </keep-alive> -->
<!-- <router-view v-slot="{ Component }"> <router-view v-slot="{ Component }">
<keep-alive> <keep-alive>
<component :is="Component" /> <component :is="Component" />
</keep-alive> </keep-alive>
</router-view> --> </router-view>
<keep-alive :max="1" :include="['首页地图']"> <!-- <keep-alive :max="1" :include="['首页地图']">
<router-view /> <router-view />
</keep-alive> </keep-alive> -->
</div> </div>
</div> </div>
</template> </template>

View File

@ -1,9 +1,5 @@
<template> <template>
<div class="person-container"> <div class="person-container">
<a @click="back()" class="page_back"
><i class="el-icon-arrow-left" title="返回"></i>返回</a
>
<div class="person-content"> <div class="person-content">
<div class="person-side"> <div class="person-side">
<div class="my-label"> <div class="my-label">
@ -394,10 +390,7 @@ const tableType = reactive({
const onClickTag = (item) => { const onClickTag = (item) => {
dialogShow.value = true; dialogShow.value = true;
}; };
const back = () => {
// sessionStorage.setItem('return',true);
window.location.href = "javascript:history.back(-1)";
};
const paginationDialog = reactive({ const paginationDialog = reactive({
current: 1, current: 1,
@ -468,6 +461,10 @@ const getData = (nm, identNo) => {
const back=()=>{ const back=()=>{
router.back() router.back()
} }
// const back = () => {
// // sessionStorage.setItem('return',true);
// window.location.href = "javascript:history.back(-1)";
// };
onMounted(() => { onMounted(() => {
// console.log(routers.query); // console.log(routers.query);
if (routers.query.type == "map") { if (routers.query.type == "map") {