Browse Source

处理注册页面回调地址错误

dygapp 3 years ago
parent
commit
37e7aeb51e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/pages/register/views/registerStu.vue
  2. 1 1
      vue.config.js

+ 1 - 1
src/pages/register/views/registerStu.vue

@@ -96,7 +96,7 @@ export default {
       // if (`${result.errcode}` === '0') this.$router.push({ path: '/' });
       let scheme = window.location.protocol;
       let host = window.location.host;
-      let url = `${scheme}//${host}/weixin/auth?redirect_url=${scheme}//${host}/mobile/#/`;
+      let url = `${scheme}//${host}/weixin/auth?redirect_uri=${scheme}//${host}/mobile/#/`;
       window.location.href = url;
     },
     selectChange({ type, value }) {

+ 1 - 1
vue.config.js

@@ -53,7 +53,7 @@ module.exports = {
         changeOrigin: true,
         ws: true,
         pathRewrite: {
-          '^/wxtoken': 'http://localhost:8005',
+          '^/wxtoken': 'http://localhost:8104',
         },
       },
       '/files': {