返回
@@ -12,6 +16,7 @@ import AiFixedBtn from "./AiFixedBtn";
 export default {
   name: "AiBack",
   components: {AiFixedBtn},
+  inject: {root: {}},
   props: {
     delta: {
       type: Number,
@@ -28,6 +33,7 @@ export default {
     },
     custom: Boolean,
     visible: Boolean,
+    btn: Boolean
   },
   data() {
     return {
@@ -36,20 +42,14 @@ export default {
   },
   methods: {
     back() {
-      if (this.visible)
+      if (this.visible) {
         return this.$parent.$emit(this.eventName, this.data)
-
-      if (this.custom) {
+      } else if (this.custom) {
         this.$emit("back")
-      } else uni.navigateBack({
-        delta: this.delta,
-        success: () => {
-          if (this.eventName != '') {
-            uni.$emit(this.eventName, this.data)
-          }
-        },
-        fail: (err) => {
-          console.error(err)
+      } else if (this.custom) {
+      } else this.root.goto({}, () => {
+        if (this.eventName != '') {
+          uni.$emit(this.eventName, this.data)
         }
       })
     }
diff --git a/src/pages/loading.vue b/src/pages/loading.vue
index 42ce9a81..87849e97 100644
--- a/src/pages/loading.vue
+++ b/src/pages/loading.vue
@@ -60,7 +60,7 @@ export default {
       })
     }
   },
-  created() {
+  onShow() {
     this.getApps()
     this.result = {
       tips: "欢迎进入开发应用",