在不同路由下的 Layout 表示当前路径及其子路径下的所有组件共享的 UI 布局组件

import React from "react";

const page
: React.FC<React.propsWithChildren> = ({ children }) => {
  return (
		<div>
			{children}
	    <ScrollToTop/>
		</div>
  );
};

export default page;

这将使得当前组建及其子组件共享 ScrollToTop 功能