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'
 import { getWxUserInfo, getWxConfig } from '../api/login'
 
 
 export async function getWxOpenId() {
 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;
         return;
     }
     }