Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
蒋秀川
/
miniProject
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 04cbfac5
authored
Aug 29, 2023
by
李君
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
e0229562
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
h5/src/App.vue
h5/src/App.vue
View file @
04cbfac
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment