add relaunch ticketdetail after changing it
This commit is contained in:
@@ -3,6 +3,8 @@ import Taro from '@tarojs/taro';
|
||||
import pt from '@/plain-text';
|
||||
import { getUrl } from '.';
|
||||
|
||||
const reLaunchInterval = 1000;
|
||||
|
||||
export function pickTicket(that: TicketDetail) {
|
||||
that.setState({
|
||||
isPickLoading: true,
|
||||
@@ -24,6 +26,11 @@ export function pickTicket(that: TicketDetail) {
|
||||
message: pt.get().button.submitText.success,
|
||||
type: 'success',
|
||||
});
|
||||
setTimeout(() => {
|
||||
Taro.reLaunch({
|
||||
url: '/pages/TicketDetail/TicketDetail?id=' + that.state.id,
|
||||
});
|
||||
}, reLaunchInterval);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
|
||||
Reference in New Issue
Block a user