mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
22 lines
502 B
JavaScript
Executable File
22 lines
502 B
JavaScript
Executable File
import React from "react"
|
|
import { Result } from "antd"
|
|
|
|
export default (props) => {
|
|
const entryParam = props.params.param
|
|
|
|
if (entryParam.startsWith("@")) {
|
|
const username = entryParam.replace("@", "")
|
|
|
|
window.app.location.push(`/account/${username}`, {
|
|
state: {
|
|
"noTransition": true,
|
|
}
|
|
})
|
|
}
|
|
|
|
return <Result
|
|
status="404"
|
|
title="404"
|
|
subTitle="Sorry, the page you visited does not exist."
|
|
/>
|
|
} |