Bläddra i källkod

fix: 监听弹窗,删除sessionStorage缓存

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 år sedan
förälder
incheckning
683a83c8e7
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      src/web/staticres/BI-module/js/crm-action.js
  2. 1 1
      src/web/templates/pc/supsearch.html

+ 1 - 1
src/web/staticres/BI-module/js/crm-action.js

@@ -51,7 +51,7 @@ var crmNode = new Vue({
       console.log(event.storageArea)
       if (event.storageArea === sessionStorage) {
         if (event.key === 'Op-upState') {
-          sessionStorage.setItem('Op-upState', "0")
+          sessionStorage.removeItem('Op-upState', "0")
           _this.dialogVisible = false
           _this.showPropertyDialog = false
           _this.getEmployData()

+ 1 - 1
src/web/templates/pc/supsearch.html

@@ -3506,7 +3506,7 @@ function checkTagDisabled () {
         window.addEventListener('storage', (event) => {
           console.info(event.storageArea)
           if (event.key === 'Op-upState') {
-            sessionStorage.setItem('Op-upState', "0")
+            sessionStorage.removeItem('Op-upState', "0")
             _this.showPropertyDialog = false
           }
           if(!_this.showPropertyDialog){