处理可重复单击新增某模块刷新页面

main
许宏杰 2 months ago
parent 7683817dee
commit 4f426c045a

@ -34,9 +34,10 @@
</template>
<script setup>
import { ref, reactive } from 'vue'
import { ref, reactive, onMounted, } from 'vue'
import userIcon from '@/assets/images/ai/user-icon.png'
import aiIcon from '@/assets/images/ai/ai-icon.png'
let keyWord = ref(null)
let messages = reactive([
{
@ -50,6 +51,8 @@ let messages = reactive([
time: '2025/03/27 14:30:23'
}
])
</script>
<style lang="scss" scoped>

@ -23,7 +23,7 @@
<ai-history></ai-history>
</div>
<div class="right-container">
<router-view></router-view>
<router-view :key="route.fullPath"></router-view>
</div>
</div>
</template>
@ -47,7 +47,10 @@ const getCurrentRoute = path => {
return route.path.includes(path)
}
const handlerPath = (path)=>{
router.push(path + '/'+ Date.now())
router.push(path + '/'+ Date.now()).catch(()=>{
})
// router.replace(route.fullPath);
}
</script>

Loading…
Cancel
Save