获取url中的参数:
例如:
http://11.22.33.1:8080/system?Data=12345&Token=6293
const hisurlquery = this.$router.history.current.query
const Data = hisurlquery.Data
const Token = hisurlquery.Token
此时如果参数中含有特殊字符,如%,某些参数被转义
如何转译还原:
const Data = encodeURIComponent(hisurlquery.Data)
const Token = encodeURIComponent(hisurlquery.Token)
逆转译:
const Data = decodeURIComponent(hisurlquery.Data)
const Token = decodeURIComponent(hisurlquery.Token)