订单页点击 返回,直接到首页

main
yanzai 1 year ago
parent b9d7fe6000
commit d3b038c363

@ -16,7 +16,7 @@ import DraggableButton from "@/pages/components/goHome.vue";
$response $response
} from '@/api' } from '@/api'
import { import {
onShow,onLoad onShow,onLoad,onBackPress
} from '@dcloudio/uni-app' } from '@dcloudio/uni-app'
import OrderComponent from './src/order.vue' import OrderComponent from './src/order.vue'
import { import {
@ -107,6 +107,13 @@ import DraggableButton from "@/pages/components/goHome.vue";
getOrderList() getOrderList()
} }
}) })
onBackPress((options)=> {
console.log(options)
uni.reLaunch({
url: '/pages/main/index/index'
});
return true;
})
</script> </script>
<template> <template>
<DraggableButton /> <DraggableButton />

Loading…
Cancel
Save