diff --git a/backend/public/js/app.js b/backend/public/js/app.js index 33a328d6..875f9d6a 100644 --- a/backend/public/js/app.js +++ b/backend/public/js/app.js @@ -43793,6 +43793,7 @@ var Alert = function Alert(props) { //props.type == 'success' alert-success //props.type == 'danger' alert-danger (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(function () { + window.scrollTo(0, 0); var timer = setTimeout(function () { clearTimeout(timer); if (props.hide) props.hide(); @@ -45840,7 +45841,7 @@ var ParentAuth = /*#__PURE__*/function (_Component) { if (document.getElementById('p-auth')) { - console.log("v1: 2021/12/15"); + console.log("v1: 2021/12/21"); react_dom__WEBPACK_IMPORTED_MODULE_1__.render( /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(ParentAuth, {}), document.getElementById('p-auth')); } diff --git a/backend/resources/js/component/alert.jsx b/backend/resources/js/component/alert.jsx index 8e88c11c..6ba2ed4a 100644 --- a/backend/resources/js/component/alert.jsx +++ b/backend/resources/js/component/alert.jsx @@ -5,16 +5,18 @@ const Alert = (props) => { //props.type == 'success' alert-success //props.type == 'danger' alert-danger - useEffect( - () => { - let timer = setTimeout(()=>{ - clearTimeout(timer); - if(props.hide) props.hide(); - }, 3000) - },[]); + useEffect(() => { + window.scrollTo(0, 0); + let timer = setTimeout(()=>{ + clearTimeout(timer); + if(props.hide) props.hide(); + }, 3000) + },[]); return ( -
{props.children}
+
+ {props.children} +
) } diff --git a/backend/resources/js/parent/auth/index.js b/backend/resources/js/parent/auth/index.js index 450ab380..0f731268 100644 --- a/backend/resources/js/parent/auth/index.js +++ b/backend/resources/js/parent/auth/index.js @@ -44,7 +44,7 @@ export default class ParentAuth extends Component { // ---------------------------------------------------------------------- if(document.getElementById('p-auth')){ - console.log("v1: 2021/12/15") + console.log("v1: 2021/12/21") ReactDOM.render( , document.getElementById('p-auth')