Browse Source

修复 about 链接点击的问题。

oldj 8 years ago
parent
commit
673a30a746
4 changed files with 12 additions and 13 deletions
  1. 0 1
      app/ui/bundle.js
  2. 1 1
      app/version.js
  3. 2 2
      package.json
  4. 9 9
      ui/about/About.jsx

File diff suppressed because it is too large
+ 0 - 1
app/ui/bundle.js


+ 1 - 1
app/version.js

@@ -1 +1 @@
-exports.version = [3,3,6,5275];
+exports.version = [3,3,6,5276];

+ 2 - 2
package.json

@@ -15,7 +15,7 @@
     "pack-win": "gulp pack --platform=win64",
     "pack-win32": "gulp pack --platform=win32",
     "zip": "gulp zip",
-    "make": "webpack -p && gulp pack && gulp zip"
+    "make": "webpack -p --progress && gulp pack && gulp zip"
   },
   "repository": {
     "type": "git",
@@ -111,4 +111,4 @@
       "presets": ["latest", "stage-0"]
     }
   }
-}
+}

+ 9 - 9
ui/about/About.jsx

@@ -30,6 +30,15 @@ export default class About extends React.Component {
   show () {
     this.setState({
       visible: true
+    }, () => {
+      let links = this.refs.content.querySelectorAll('a')
+      links = Array.from(links)
+      links.map(a => {
+        a.onclick = () => {
+          this.openUrl(a.href)
+          return false
+        }
+      })
     })
   }
 
@@ -41,15 +50,6 @@ export default class About extends React.Component {
     Agent.on('show-about', () => {
       this.show()
     })
-
-    let links = this.refs.content.querySelectorAll('a')
-    links = Array.from(links)
-    links.map(a => {
-      a.onclick = () => {
-        this.openUrl(a.href)
-        return false
-      }
-    })
   }
 
   render () {

Some files were not shown because too many files changed in this diff