Commit 4e821483 authored by 郝聪敏's avatar 郝聪敏

fix: 测试分享url

parent 40b93242
//引入axios
// import store from "@/store";
import store from "@/store";
import router from "@/router";
import axios from "axios";
import cherry from "@qg/cherry-ui";
......@@ -45,7 +45,7 @@ function afterRequest() {
function clearRequest() {
reqNum--;
if (reqNum <= 0) {
// store.dispatch("setIsLoading", false);
store.dispatch("setIsLoading", false);
}
}
......
......@@ -20,7 +20,7 @@ export async function setShare({
url = window.location.origin,
imgUrl = ""
}) {
const currentUrl = encodeURIComponent(location.href.split("#")[0]);
const currentUrl = location.href.split("#")[0];
const res = await getwxAuth({
appId: cfg.wxAppId,
url: currentUrl
......
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