mirror of
http://git.keliuyun.com:55676/jiaxiuc123/miniProject.git
synced 2025-12-24 12:38:07 +08:00
1
This commit is contained in:
@@ -98,9 +98,9 @@
|
||||
}
|
||||
/*获取 Url 参数 S*/
|
||||
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'
|
||||
const paramObj = parse(url).search || {}
|
||||
// const paramObj = parse(window.location.href).search || {}
|
||||
// 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(window.location.href).search || {}
|
||||
/********************************/
|
||||
document.title = decodeURIComponent(paramObj.name);
|
||||
window.localStorage.setItem('atoken', paramObj.atoken);
|
||||
|
||||
Reference in New Issue
Block a user