|
@@ -45,7 +45,7 @@ var cmSysVitaMixins = function () {
|
|
// 校验是否为配置的路径
|
|
// 校验是否为配置的路径
|
|
checkedIsInclude(url) {
|
|
checkedIsInclude(url) {
|
|
if (!url) return false
|
|
if (!url) return false
|
|
- return includeList.some(item => url.indexOf(item.url) > -1)
|
|
|
|
|
|
+ return includeList.some(item => url === item.url)
|
|
},
|
|
},
|
|
handleCmSysNetInfo() {
|
|
handleCmSysNetInfo() {
|
|
//设置定时器
|
|
//设置定时器
|
|
@@ -64,13 +64,17 @@ var cmSysVitaMixins = function () {
|
|
}
|
|
}
|
|
const pageUrls = window.location.pathname;
|
|
const pageUrls = window.location.pathname;
|
|
const pagePath = window.location.href;
|
|
const pagePath = window.location.href;
|
|
|
|
+ console.log('===',pageUrls)
|
|
|
|
+ console.log('===',this.checkedIsInclude(pageUrls))
|
|
if(this.checkedIsInclude(pageUrls)){
|
|
if(this.checkedIsInclude(pageUrls)){
|
|
const pageData = this.checkedIsIncludeType(pageUrls);
|
|
const pageData = this.checkedIsIncludeType(pageUrls);
|
|
this.cmSysParams.pageType = pageData ? pageData.pageType : '';
|
|
this.cmSysParams.pageType = pageData ? pageData.pageType : '';
|
|
this.cmSysParams.pageLabel = pageData ? pageData.pageLabel : '';
|
|
this.cmSysParams.pageLabel = pageData ? pageData.pageLabel : '';
|
|
}
|
|
}
|
|
this.cmSysParams.pagePath = pagePath;
|
|
this.cmSysParams.pagePath = pagePath;
|
|
- this.handleSetNetworks(this.cmSysParams);
|
|
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ this.handleSetNetworks(this.cmSysParams);
|
|
|
|
+ },1000)
|
|
},
|
|
},
|
|
handleSetNetworks(params){// 进入页面执行统计
|
|
handleSetNetworks(params){// 进入页面执行统计
|
|
console.log(`页面路径:${params.pagePath}`,`标签:${params.pageLabel}`)
|
|
console.log(`页面路径:${params.pagePath}`,`标签:${params.pageLabel}`)
|