Merge branch 'feat/1.0.8/ui' of github.com:answerdev/answer into feat/1.0.8/ui

This commit is contained in:
haitaoo 2023-03-24 18:41:20 +08:00
commit b2f3195de5
3 changed files with 1 additions and 3 deletions

View File

@ -1,4 +1,3 @@
// eslint-disable-next-line import/no-unresolved
import { HttpErrorContent } from '@/components'; import { HttpErrorContent } from '@/components';
const Index = () => { const Index = () => {

View File

@ -1,4 +1,3 @@
// eslint-disable-next-line import/no-unresolved
import { HttpErrorContent } from '@/components'; import { HttpErrorContent } from '@/components';
const Index = () => { const Index = () => {

View File

@ -182,7 +182,7 @@ export const admin = () => {
const us = deriveLoginState(); const us = deriveLoginState();
if (gr.ok && !us.isAdmin) { if (gr.ok && !us.isAdmin) {
gr.ok = false; gr.ok = false;
gr.redirect = RouteAlias.home; gr.redirect = '';
} }
return gr; return gr;
}; };