feat:报错修复,练习页面加载,
This commit is contained in:
parent
27b68d2abc
commit
68c64a96c1
@ -1,4 +1,4 @@
|
|||||||
import { request } from '../request'
|
import request from '../request'
|
||||||
import type { ApiResponse } from '../types'
|
import type { ApiResponse } from '../types'
|
||||||
|
|
||||||
export interface SystemSettings {
|
export interface SystemSettings {
|
||||||
|
@ -34,7 +34,7 @@ export const isAdminRoute = (path: string): boolean => {
|
|||||||
/**
|
/**
|
||||||
* 路由守卫:检查网站维护状态
|
* 路由守卫:检查网站维护状态
|
||||||
*/
|
*/
|
||||||
export const maintenanceGuard = (to: any, from: any, next: any) => {
|
export const maintenanceGuard = (to: any, _from: any, next: any) => {
|
||||||
const siteEnabled = isSiteEnabled()
|
const siteEnabled = isSiteEnabled()
|
||||||
const isAdmin = isAdminRoute(to.path)
|
const isAdmin = isAdminRoute(to.path)
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user