获取地址栏上携带的参数信息
/* eslint-disable */
function getUrlKey (name) {
return decodeURIComponent((new RegExp("[?|&]" + name + "=([^&;]+?)(&|#|;|$)").exec(location.href) || [, ""])[1].replace(/\+/g, "%20")) || null;
}
created() {
const id = this.getUrlKey('id');
}