sunChengjie 11 months ago
parent
commit
95fd8e1648
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/script/wxGetOpenId.js

+ 1 - 1
src/script/wxGetOpenId.js

@@ -1,7 +1,7 @@
 import { getWxUserInfo, getWxConfig } from '../api/login'
 
 export async function getWxOpenId() {
-    if (localStorage.getItem("openid") != 'undefined' && localStorage.getItem("openid") != null) {
+    if (localStorage.getItem("openid") != 'undefined' && localStorage.getItem("openid") != null && localStorage.getItem("openid") != '') {
         return;
     }