feat: 更新重定向路径,将 '/root/home/' 修改为 '/root/center/'
This commit is contained in:
@@ -28,7 +28,7 @@ export const defaultKeys = [
|
||||
{
|
||||
key: 'user.json',
|
||||
description: '用户配置',
|
||||
data: { key: 'user', version: '1.0.0', redirectURL: '/root/home/' },
|
||||
data: { key: 'user', version: '1.0.0', redirectURL: '/root/center/' },
|
||||
},
|
||||
{
|
||||
key: 'life.json',
|
||||
|
||||
@@ -48,7 +48,7 @@ app
|
||||
<script>
|
||||
const redirect = new URL('${reqUrl}', window.location.origin);
|
||||
const encodeRedirect = encodeURIComponent(redirect.toString());
|
||||
const toPage = new URL('/root/home/?user-check=true&redirect='+encodeRedirect, window.location.origin);
|
||||
const toPage = new URL('/root/center/login/?user-check=true&redirect='+encodeRedirect, window.location.origin);
|
||||
setTimeout(() => {
|
||||
window.location.href = toPage.toString();
|
||||
}, 1000);
|
||||
|
||||
Reference in New Issue
Block a user