Prechádzať zdrojové kódy

fix: 异步获取权限

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 rok pred
rodič
commit
2fc621bfc3

+ 3 - 0
src/web/staticres/js/login.js

@@ -362,6 +362,9 @@ function checkBigStatus () {
         window.isNewEntNiche = res.data.entIsNew
         window.isEntService = res.data.isEntService
         sessionStorage.setItem('bidPower', JSON.stringify(res.data.power))
+        try {
+          setUserFree()
+        } catch (error) {}
         if (res.data.memberStatus > 0) {
           $(".myorderDiv.lastBox").show()
         }

+ 4 - 0
src/web/staticres/js/pur-search-index-pc.js

@@ -53,7 +53,11 @@ function ewmMoveHover() {
         })
     })
 }
+window.setUserFree = function () {
+  vmPurSearch.getList()
+}
 var selectDataIds = []
+
 var vmPurSearch = new Vue({
     el: '#pur-search-container',
     delimiters: ['${', '}'],