fix:修复了前端无法通过历史记录切换页面的bug (#76)

Reviewed-on: PostGuard/Canon#76
Co-authored-by: ichirinko <1621543655@qq.com>
Co-committed-by: ichirinko <1621543655@qq.com>
This commit is contained in:
ichirinko 2024-05-09 14:44:23 +08:00 committed by jackfiled
parent 160fafef70
commit 4a712fc462

View File

@ -56,7 +56,7 @@ export function Index() {
} }
} }
getCompileInstance(); getCompileInstance();
}, []); }, [location.pathname]);
const handleValueChange = (value: string) => { const handleValueChange = (value: string) => {