fix: get ticket id from url: string -> number
This commit is contained in:
@@ -118,7 +118,7 @@ export default class TicketDetail extends Component<{}, TicketDetailState> {
|
|||||||
|
|
||||||
componentDidMount(): void {
|
componentDidMount(): void {
|
||||||
const { router } = getCurrentInstance();
|
const { router } = getCurrentInstance();
|
||||||
const id = router?.params.id as number;
|
const id = Number(router?.params.id);
|
||||||
this.setState({
|
this.setState({
|
||||||
id: id,
|
id: id,
|
||||||
isMember: wechatUser.getAccess(),
|
isMember: wechatUser.getAccess(),
|
||||||
|
|||||||
Reference in New Issue
Block a user