sunChengjie 11 月之前
父節點
當前提交
95fd8e1648
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
     }