Authored by TaoHuang

fix report page open and close

... ... @@ -158,7 +158,7 @@ const trackPage = path => {
router.onReady(() => {
store.dispatch('reportYas', {
params: {
appop: 'YB_H5_PAGE_OPEN_L',
appop: 'XY_H5_PAGE_OPEN_L',
param: {
F_URL: `${location.origin}${router.currentRoute.fullPath}`,
PAGE_URL: '',
... ... @@ -189,7 +189,18 @@ router.onReady(() => {
store.dispatch('reportYas', {
params: {
appop: 'YB_H5_PAGE_OPEN_L',
appop: 'XY_H5_PAGE_OPEN_L',
param: {
F_URL: `${location.origin}${from.fullPath}`,
PAGE_URL: `${location.origin}${to.fullPath}`,
PAGE_NAME: to.name,
},
},
});
store.dispatch('reportYas', {
params: {
appop: 'XY_H5_PAGE_EXIT_L',
param: {
F_URL: `${location.origin}${to.fullPath}`,
PAGE_URL: `${location.origin}${from.fullPath}`,
... ...