diff --git a/package-lock.json b/package-lock.json index 840a688..518f381 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "before-server", - "version": "1.0.69", + "version": "1.0.70", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 8497269..ae059d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "before-server", - "version": "1.0.69", + "version": "1.0.70", "description": "before server for query client request", "main": "index.js", "scripts": { diff --git a/ui/src/pages/myMonitor/index.js b/ui/src/pages/myMonitor/index.js index a0d88bc..e79446f 100644 --- a/ui/src/pages/myMonitor/index.js +++ b/ui/src/pages/myMonitor/index.js @@ -72,12 +72,13 @@ export default class myMonitor extends HTMLContent { badge = `${data.res.statusCode}` } reqItemTemplateContent.querySelector(".req-item").innerHTML = badge + completeUrl.pathname; - reqItemTemplateContent.querySelector(".req-item").addEventListener('click',(event)=>{ + const that = this; + reqItemTemplateContent.querySelector(".req-item").addEventListener('click',function (_event){ for(const e of reqListDom.children) {e.className = e.className.replace('active','')} - if(event.target.className.indexOf('active')==-1) { - event.target.className += ' active' + if(this.className.indexOf('active')==-1) { + this.className += ' active' } - this.showBody(data); + that.showBody(data); }) reqListDom.appendChild(reqItemTemplateContent) })