mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
Co-authored-by: allanyu <allanyu@tencent.com>
This commit is contained in:
parent
599c404f31
commit
ce766f7221
@ -335,7 +335,7 @@ export default class Tabs extends React.Component<TabsProps, TabsState> {
|
||||
localTabs = newLocalTabs;
|
||||
}
|
||||
|
||||
if (props.location && props.location.hash !== preProps.location.hash) {
|
||||
if (props.location && preProps.location && props.location.hash !== preProps.location.hash) {
|
||||
const hash = props.location.hash.substring(1);
|
||||
if (!hash) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user