Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
bb0ef83a
Commit
bb0ef83a
authored
Sep 28, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6877dffb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
init.service.js
src/service/init.service.js
+3
-1
No files found.
src/service/init.service.js
View file @
bb0ef83a
...
...
@@ -2,7 +2,7 @@
* Created by jialiu on 17/1/11.
*/
import
store
from
'
../store
'
;
import
{
isWechat
,
isApp
}
from
'
./validation.service
'
;
import
{
isWechat
,
isApp
,
isAndroid
,
isIOS
}
from
'
./validation.service
'
;
import
Cookies
from
'
./cookieStorage.service
'
;
import
localStorage
from
'
./localStorage.service
'
;
// import { Toast } from '@qg/cherry-ui';
...
...
@@ -20,6 +20,8 @@ export default {
// 所有自定义路由字段在此处理
const
{
meta
}
=
to
;
isWechat
&&
localStorage
.
set
(
'
vccChannel
'
,
'
159913
'
);
isIOS
&&
localStorage
.
set
(
'
vccChannel
'
,
'
214
'
);
isAndroid
&&
localStorage
.
set
(
'
vccChannel
'
,
'
217
'
);
meta
?.
has
?.
header
&&
store
.
commit
(
'
CHANGE_HEADER
'
,
meta
.
has
.
header
);
// 改变header
const
localParams
=
[
'
token
'
,
'
redirectUrl
'
,
'
h
'
,
'
vccToken
'
,
'
vccChannel
'
,
'
sonVccChannel
'
];
// TODO: 类似逻辑可以整合
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment