提交 5537ec11 authored 作者: lihuihui's avatar lihuihui

update

上级 75782661
<template> <template>
<div> <div>
<div class="title-box" @click="$router.go(-1)"> <div class="title-box" @click="goBack">
<van-icon name="arrow-left" class="left-btn"/> <van-icon name="arrow-left" class="left-btn"/>
<div class="text">返回</div> <div class="text">返回</div>
<div class="title">{{ title }}</div> <div class="title">{{ title }}</div>
...@@ -17,6 +17,17 @@ export default { ...@@ -17,6 +17,17 @@ export default {
}, },
components: { components: {
[Icon.name]: Icon [Icon.name]: Icon
},
methods: {
goBack() {
if (this.$route.details) {
this.$router.push({
path: '/index'
})
return
}
this.$router.go(-1)
}
} }
} }
</script> </script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论