Commit ed5f966d by zhangleyuan

feat:处理授权模块

parent ba92d52e
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
"postcss-normalize": "8.0.1", "postcss-normalize": "8.0.1",
"postcss-preset-env": "6.7.0", "postcss-preset-env": "6.7.0",
"postcss-safe-parser": "4.0.1", "postcss-safe-parser": "4.0.1",
"query-string": "^6.13.8",
"react": "^16.13.1", "react": "^16.13.1",
"react-app-polyfill": "^1.0.6", "react-app-polyfill": "^1.0.6",
"react-dev-utils": "^10.2.1", "react-dev-utils": "^10.2.1",
......
import React from 'react'; import React from 'react';
import Service from '@/common/js/service'; import Service from '@/common/js/service';
import { AppId } from '@/common/js/config' import { AppId } from '@/common/js/config'
import queryString from 'query-string';
import './index.less'; import './index.less';
class Authorize extends React.Component { class Authorize extends React.Component {
...@@ -11,9 +11,9 @@ class Authorize extends React.Component { ...@@ -11,9 +11,9 @@ class Authorize extends React.Component {
} }
} }
componentDidMount() { componentDidMount() {
const searchParams = this.props.location.search
console.log('参数',queryString.parse(searchParams));
} }
wechatLogin = () => { wechatLogin = () => {
let path = window.location.origin + window.location.pathname; let path = window.location.origin + window.location.pathname;
......
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