Bläddra i källkod

wechatAuth优化

seimin 2 år sedan
förälder
incheckning
8de70f930b
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/views/Login.vue

+ 1 - 1
src/views/Login.vue

@@ -46,7 +46,7 @@ export default {
46 46
     // 登陆
47 47
     login() {
48 48
       var that = this;
49
-      that.$http.post("service/auth/wechatAuth", {}).then(res => {
49
+      that.$http.post("service/auth/wechatAuth", {redirectUrl:location.origin+location.pathname}).then(res => {
50 50
         if (res.data.url) {
51 51
           window.location.href = res.data.url;
52 52
         } else {