Commit fc9174ab authored by 郭志伟's avatar 郭志伟

fix: 分享验证

parent 35905816
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: weixin-js-sdk * @Description: weixin-js-sdk
* @LastEditors: gzw * @LastEditors: gzw
* @Date: 20120-08-30 18:40:11 * @Date: 20120-08-30 18:40:11
* @LastEditTime: 2020-09-01 18:36:05 * @LastEditTime: 2020-09-01 18:51:52
*/ */
import cfg from "@/config/index"; import cfg from "@/config/index";
import { getwxAuth } from "@/api/user"; import { getwxAuth } from "@/api/user";
...@@ -70,7 +70,7 @@ export async function setShare({ ...@@ -70,7 +70,7 @@ export async function setShare({
export function checkOpenId() { export function checkOpenId() {
const openId = localStorage.get("openId"); const openId = localStorage.get("openId");
const local = window.location.href; const local = window.location.href;
alert(!openId && isWeixinBrower); console.log(openId, isWeixinBrower);
if (!openId && isWeixinBrower) { if (!openId && isWeixinBrower) {
alert("无openid"); alert("无openid");
var nextPage = document.createElement("a"); var nextPage = document.createElement("a");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment