xiabx vor 5 Jahren
Ursprung
Commit
60d4f5ca93
3 geänderte Dateien mit 5 neuen und 7 gelöschten Zeilen
  1. 1 1
      src/helper/interface.js
  2. 2 3
      src/views/Index/index.ux
  3. 2 3
      src/views/Reader/index.ux

+ 1 - 1
src/helper/interface.js

@@ -18,7 +18,7 @@ const getDeviceInfo = () => {
 const getShortCut = (fn) =>{
   shortcut.hasInstalled({
     success: (ret) => {
-      if(!ret) fn();
+      fn(ret);
     }
   })
   

+ 2 - 3
src/views/Index/index.ux

@@ -97,9 +97,8 @@ export default {
     this.getCoustom();
   },
   onShow(){
-    it.getShortCut(()=>{
-      this.showShortPop = true;
-
+    it.getShortCut((value)=>{
+      this.showShortPop = !value;
     })
   },
   onBackPress() {

+ 2 - 3
src/views/Reader/index.ux

@@ -45,9 +45,8 @@ export default {
     }
   },
    onShow(){
-    it.getShortCut(()=>{
-      this.showShortPop = true;
-
+    it.getShortCut((value)=>{
+      this.showShortPop = !value;
     })
   },
   addShelf() {