Commit 6778967c authored by guoyou's avatar guoyou

40页面设置

parent 63a0f051
...@@ -8,22 +8,22 @@ ...@@ -8,22 +8,22 @@
</div> </div>
<div style="margin-top: 80px;"> <div style="margin-top: 80px;">
<span style="font-size: 16px;color: #666;">暂时无法打开页面,您可选择返回</span> <span style="font-size: 16px;color: #666;">暂时无法打开页面,您可选择返回</span>
<nuxt-link :to="router"> <!-- <nuxt-link :to="router"> -->
<span class="to-home">点击跳转到首页</span> <span class="to-home" @click="links" style="cursor: pointer">点击跳转到首页</span>
</nuxt-link> <!-- </nuxt-link> -->
</div> </div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
created() { methods:{
let router = this.$route.path links(){
this.router = router == '/'?'#top' : '/' if (this.$route.path == "/") {
}, location.reload()
data() { }else{
return { this.$router.push({ path: '/'})
router: '/' }
} }
}, },
props: ['error'], props: ['error'],
......
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