瀏覽代碼

update user app.vue

wangfei 6 年之前
父節點
當前提交
0663052f50
共有 1 個檔案被更改,包括 8 行新增8 行删除
  1. 8
    8
      src/pages/user/App.vue

+ 8
- 8
src/pages/user/App.vue 查看文件

@@ -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'])