Commit d9dfae9e by zhangzhijie

地址栏参数优化

parent 0302e27d
......@@ -14,9 +14,12 @@ export default {
if (res.code == 200) {
sessionStorage.setItem("token", "bearer " + res.data.accessToken);
sessionStorage.setItem("userInfo", JSON.stringify(res.data));
debugger
if(vm.$router.currentRoute.query.type != null && vm.$router.currentRoute.query.type != ''){
let urlPath = "/"+vm.$router.currentRoute.query.type+'?asjbh='+vm.$router.currentRoute.query.asjbh;
if (vm.$router.currentRoute.query.type != null && vm.$router.currentRoute.query.type != '') {
let urlPath = "/" + vm.$router.currentRoute.query.type;
if (vm.$router.currentRoute.query.asjbh != null && vm.$router.currentRoute.query.asjbh != '') {
urlPath += '?asjbh=';
urlPath += vm.$router.currentRoute.query.asjbh
}
vm.$router.push(urlPath);
}
} else {
......
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