|
@@ -23,14 +23,14 @@ export default {
|
23
|
23
|
})
|
24
|
24
|
},
|
25
|
25
|
created () {
|
26
|
|
- // if (location.search && this.toolClass.UrlSearch(location.search).code) {
|
27
|
|
- // this.code = this.toolClass.UrlSearch(location.search).code
|
28
|
|
- // } else {
|
29
|
|
- // this.code = null
|
30
|
|
- // }
|
31
|
|
- // this.getUserInfo({ org: this.org, code: this.code }).then(() => {
|
32
|
|
- // this.showPage = true
|
33
|
|
- // })
|
|
26
|
+ if (location.search && this.toolClass.UrlSearch(location.search).code) {
|
|
27
|
+ this.code = this.toolClass.UrlSearch(location.search).code
|
|
28
|
+ } else {
|
|
29
|
+ this.code = null
|
|
30
|
+ }
|
|
31
|
+ this.getUserInfo({ org: this.org, code: this.code }).then(() => {
|
|
32
|
+ this.showPage = true
|
|
33
|
+ })
|
34
|
34
|
},
|
35
|
35
|
methods: {
|
36
|
36
|
...actions(['getUserInfo'])
|