Commit a620e3de authored by 郝聪敏's avatar 郝聪敏

Merge branch 'feature/test_url' into 'master'

fix: 测试分享url

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