Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks-h5
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
quantum-blocks-h5
Commits
ee1e7ae9
Commit
ee1e7ae9
authored
Jun 07, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 移除vconsole, sa全局添加渠道号
parent
092d2126
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
index.ts
app/web/component/layout/activity/index.ts
+5
-5
sa.service.ts
app/web/service/sa.service.ts
+6
-1
No files found.
app/web/component/layout/activity/index.ts
View file @
ee1e7ae9
...
@@ -19,11 +19,11 @@ if (process.env.SENTRY_ENV !== 'test' && process.env.NODE_ENV === 'production')
...
@@ -19,11 +19,11 @@ if (process.env.SENTRY_ENV !== 'test' && process.env.NODE_ENV === 'production')
.
install
();
.
install
();
}
}
if
(
EASY_ENV_IS_BROWSER
&&
process
.
env
.
SENTRY_ENV
===
'
test
'
||
process
.
env
.
NODE_ENV
!==
'
production
'
)
{
//
if (EASY_ENV_IS_BROWSER && process.env.SENTRY_ENV === 'test' || process.env.NODE_ENV !== 'production') {
// ! 上线后务必取掉;
//
// ! 上线后务必取掉;
const
vConsole
=
require
(
'
vconsole
'
);
//
const vConsole = require('vconsole');
new
vConsole
();
//
new vConsole();
}
//
}
if
(
EASY_ENV_IS_BROWSER
)
{
if
(
EASY_ENV_IS_BROWSER
)
{
const
isSafari
=
/^.*
((
iPhone
)
|
(
iPad
)
|
(
Safari
))
+.*$/
;
const
isSafari
=
/^.*
((
iPhone
)
|
(
iPad
)
|
(
Safari
))
+.*$/
;
...
...
app/web/service/sa.service.ts
View file @
ee1e7ae9
...
@@ -2,10 +2,13 @@ import Vue from 'vue';
...
@@ -2,10 +2,13 @@ import Vue from 'vue';
import
sa
from
'
sa-sdk-javascript
'
;
import
sa
from
'
sa-sdk-javascript
'
;
import
config
from
'
@/config
'
;
import
config
from
'
@/config
'
;
import
Storage
from
'
@/service/localStorage.service
'
;
import
Storage
from
'
@/service/localStorage.service
'
;
import
{
getParameterByName
}
from
'
@/service/utils.service
'
;
export
function
initSa
(
router
)
{
export
function
initSa
(
router
)
{
console
.
log
(
'
initSa
'
,
EASY_ENV_IS_BROWSER
,
config
,
window
.
location
.
pathname
);
console
.
log
(
'
initSa
'
,
EASY_ENV_IS_BROWSER
,
config
,
window
.
location
.
pathname
);
const
activity_id
=
window
.
location
.
pathname
.
split
(
'
/
'
)?.[
2
]
||
''
;
const
activity_id
=
window
.
location
.
pathname
.
split
(
'
/
'
)?.[
2
]
||
''
;
const
vccChannel
=
getParameterByName
(
'
vccChannel
'
)
||
getParameterByName
(
'
registerFrom
'
);
const
sonVccChannel
=
getParameterByName
(
'
sonVccChannel
'
);
sa
.
init
({
sa
.
init
({
server_url
:
config
.
shenceUrl
,
server_url
:
config
.
shenceUrl
,
heatmap
:
{
heatmap
:
{
...
@@ -22,7 +25,9 @@ export function initSa(router) {
...
@@ -22,7 +25,9 @@ export function initSa(router) {
// 添加公共属性
// 添加公共属性
sa
.
registerPage
({
sa
.
registerPage
({
platformType
:
'
H5
'
,
platformType
:
'
H5
'
,
activity_id
activity_id
,
vccChannel
,
sonVccChannel
});
});
router
.
afterEach
(()
=>
{
router
.
afterEach
(()
=>
{
Vue
.
nextTick
(()
=>
{
Vue
.
nextTick
(()
=>
{
...
...
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