Parcourir la source

Merge remote-tracking branch 'remotes/origin/dev5.8.1' into dev5.8.2

HUANGYAQIAN-PC\huangyaqian il y a 1 an
Parent
commit
800e01a1a3
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      components/layout/index.vue

+ 5 - 2
components/layout/index.vue

@@ -9,7 +9,10 @@
 export default {
   name: 'layout',
   props: {
-    isGoBack
+    isGoBack: {
+      type: Boolean,
+      default: false
+    }
   },
   data() {
     return {
@@ -33,7 +36,7 @@ export default {
   methods: {
     goBack() {
       // 如果为true是最前一页
-      if(isGoBack) {
+      if(this.isGoBack) {
         this.isAndroid ? window.native.backClick() : window.webkit.messageHandlers.appGoBack.postMessage({})
         return 
       }