A very simple template. If you want to take the parameters on the route, you will report the following error
console.log,
the address bar is
xxx.xxx.com/-sharp/loading?ck=123456&id=123456
here is my code
<template>
<div class="loadpay">
<v-header title="..." text="" @back="back" ref="header" style="z-index:9">
<i class="iconfont icon-jiantouzuo" slot="back"></i>
</v-header>
<div>
<img src="../../assets/images/loading.png">
</div>
</div>
</template>
<script>
import vHeader from "components/header"
import {getUrl, getCode} from "utils/axios"
export default {
name: "loadpay",
components: {
vHeader
},
mounted () {
console.log(this.$route)
},
methods: {
back () {
this.$router.push({
path: "/"
})
}
}
}
</script>
<style lang="scss" scoped>
@import "~styles/variables.scss";
.loadpay{
text-align: center;
width: 100%;
img{
padding-top: 5rem;
width: 40%;
}
}
</style>
seek solutions from all kinds of gods.