fix(web): 修复切换路由不刷新页面的问题
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from 'react'
|
||||
import {useParams} from 'react-router'
|
||||
import {useLocation, useParams} from 'react-router'
|
||||
import {
|
||||
amisRender,
|
||||
commonInfo,
|
||||
@@ -11,8 +11,9 @@ import {
|
||||
|
||||
const Yarn: React.FC = () => {
|
||||
const {clusters, queue, search} = useParams()
|
||||
const location = useLocation()
|
||||
return (
|
||||
<div className="hudi-yarn bg-white">
|
||||
<div key={location.key} className="hudi-yarn bg-white">
|
||||
{amisRender(
|
||||
{
|
||||
type: 'wrapper',
|
||||
|
||||
Reference in New Issue
Block a user