Commit 04cbfac5 by 李君

1

1 parent e0229562
...@@ -98,9 +98,9 @@ ...@@ -98,9 +98,9 @@
} }
/*获取 Url 参数 S*/ /*获取 Url 参数 S*/
import parse from 'url-param-parser'; import parse from 'url-param-parser';
let url = 'https://store.keliuyun.com/video/?userId=8840&atoken=16e4bf63-a3cd-420c-895a-a22617939989&type=undefined&id=42&channelid=122&platform=2&name=全景球机&mallId=9216&bookmark=true&accountId=337' // let url = 'https://store.keliuyun.com/video/?userId=8840&atoken=16e4bf63-a3cd-420c-895a-a22617939989&type=undefined&id=42&channelid=122&platform=2&name=全景球机&mallId=9216&bookmark=true&accountId=337'
const paramObj = parse(url).search || {} // const paramObj = parse(url).search || {}
// const paramObj = parse(window.location.href).search || {} const paramObj = parse(window.location.href).search || {}
/********************************/ /********************************/
document.title = decodeURIComponent(paramObj.name); document.title = decodeURIComponent(paramObj.name);
window.localStorage.setItem('atoken', paramObj.atoken); window.localStorage.setItem('atoken', paramObj.atoken);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!