fix: docs redirect problem fix (#892)

This commit is contained in:
magic.chen 2023-12-05 16:44:55 +08:00 committed by GitHub
parent 3b96a71d9c
commit 80785d2a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
window.onload = function() {
if (window.location.pathname !== '/docs/overview') {
if (window.location.pathname == '/' || window.location.pathname == "") {
window.location.href = '/docs/overview';
}
};