|
@@ -1,7 +1,7 @@
|
|
|
<script setup>
|
|
|
import Empty from "../Empty/Empty.vue";
|
|
|
import { ref, onMounted, watchEffect } from "vue";
|
|
|
-import { router, getRoute } from "../../utils/router";
|
|
|
+import { router, getRoute, normalizeParams } from "../../utils/router";
|
|
|
import { getRect, debounce } from "../../utils";
|
|
|
import { getCurrentInstance } from "vue";
|
|
|
import pages from "@/pages.json";
|
|
@@ -81,6 +81,10 @@ const onBack = async () => {
|
|
|
if (props.onBack) {
|
|
|
const res = await props.onBack();
|
|
|
if (!res) return;
|
|
|
+ if (typeof res === "string") {
|
|
|
+ router.reLaunch(normalizeParams(res));
|
|
|
+ return;
|
|
|
+ }
|
|
|
router.back();
|
|
|
return;
|
|
|
}
|
|
@@ -296,4 +300,4 @@ scroll-view ::-webkit-scrollbar {
|
|
|
white-space: nowrap;
|
|
|
display: inline-flex;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|