Commit 6778967c authored by guoyou's avatar guoyou

40页面设置

parent 63a0f051
......@@ -8,24 +8,24 @@
</div>
<div style="margin-top: 80px;">
<span style="font-size: 16px;color: #666;">暂时无法打开页面,您可选择返回</span>
<nuxt-link :to="router">
<span class="to-home">点击跳转到首页</span>
</nuxt-link>
<!-- <nuxt-link :to="router"> -->
<span class="to-home" @click="links" style="cursor: pointer">点击跳转到首页</span>
<!-- </nuxt-link> -->
</div>
</div>
</template>
<script>
export default {
created() {
let router = this.$route.path
this.router = router == '/'?'#top' : '/'
},
data() {
return {
router: '/'
}
},
methods:{
links(){
if (this.$route.path == "/") {
location.reload()
}else{
this.$router.push({ path: '/'})
}
}
},
props: ['error'],
layout: 'blog' // 你可以为错误页面指定自定义的布局
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment