Browse Source

fix: 创建情报后更新收录状态

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 year ago
parent
commit
9c29a1744d
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/web/templates/pc/supsearch.html

+ 10 - 0
src/web/templates/pc/supsearch.html

@@ -3508,6 +3508,16 @@ function checkTagDisabled () {
             sessionStorage.setItem('Op-upState', "0")
             _this.showPropertyDialog = false
           }
+          if(!_this.showPropertyDialog){
+            if(event.key === 'return_status') {
+              const propertyData = localStorage.getItem('property-data')
+              if(propertyData) {
+                propertyData = JSON.parse(propertyData)
+                $('.icon-shoulu[dataid="' + propertyData._id + '"]').removeClass('icon-a-Property1shoulu').addClass('icon-a-Property1yishoulu')
+              }
+              sessionStorage.removeItem('return_status')
+            }
+          }
         })
       }
     },