kulley 6 years ago
parent
commit
7cb4016c68

+ 1 - 1
src/App.js

@@ -87,7 +87,7 @@ class App extends Component {
         let isWechatLogin = getIsWechatBrowser()
         let isWechatLogin = getIsWechatBrowser()
         // console.log('isWechatLogin',isWechatLogin)
         // console.log('isWechatLogin',isWechatLogin)
         if (isWechatLogin) {
         if (isWechatLogin) {
-            // setCookie("openid","o2fcFv6Rh2-4rCh3d5_1uCWCT5Yc")
+            setCookie("openid","o2fcFv6Rh2-4rCh3d5_1uCWCT5Yc")
             let openid = getCookie("openid")
             let openid = getCookie("openid")
             let user_id = getCookie("user_id")
             let user_id = getCookie("user_id")
             console.log('oauthLogin openid', openid)
             console.log('oauthLogin openid', openid)

+ 1 - 1
src/pages/my/manage/index.js

@@ -15,7 +15,7 @@ class Manage extends Component {
     componentWillMount() {
     componentWillMount() {
         let {location} = this.props
         let {location} = this.props
         if (location && location.state) {
         if (location && location.state) {
-            this.props.history.push({
+            this.props.history.replace({
                 pathname: '/my/manage/' + location.state.page,
                 pathname: '/my/manage/' + location.state.page,
                 state: {}
                 state: {}
             })
             })

+ 1 - 1
src/pages/my/member/index.js

@@ -15,7 +15,7 @@ class Member extends Component {
     componentWillMount() {
     componentWillMount() {
         let {location} = this.props
         let {location} = this.props
         if (location && location.state) {
         if (location && location.state) {
-            this.props.history.push({
+            this.props.history.replace({
                 pathname: '/my/member/' + location.state.page,
                 pathname: '/my/member/' + location.state.page,
                 state: {}
                 state: {}
             })
             })

+ 1 - 1
src/pages/my/order/index.js

@@ -13,7 +13,7 @@ class Order extends Component {
         let {location} = this.props
         let {location} = this.props
         if (location && location.state) {
         if (location && location.state) {
             if(['pay', 'ship', 'unbox', 'judge'].indexOf(location.state.kind)>-1) {
             if(['pay', 'ship', 'unbox', 'judge'].indexOf(location.state.kind)>-1) {
-                this.props.history.push({
+                this.props.history.replace({
                     pathname: '/my/order/display',
                     pathname: '/my/order/display',
                     state: {
                     state: {
                         kind: location.state.kind
                         kind: location.state.kind

+ 1 - 1
src/pages/my/tools/index.js

@@ -14,7 +14,7 @@ class Tools extends Component {
     componentWillMount() {
     componentWillMount() {
         let {location} = this.props
         let {location} = this.props
         if (location && location.state) {
         if (location && location.state) {
-            this.props.history.push({
+            this.props.history.replace({
                 pathname: '/my/tools/' + location.state.page,
                 pathname: '/my/tools/' + location.state.page,
                 state: location.state
                 state: location.state
             })
             })