chore: fix typo
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
CaptainB 2025-03-31 11:30:34 +08:00 committed by 刘瑞斌
parent 7a99c78840
commit cb104cc211
4 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ from celery import Celery
from celery.schedules import crontab from celery.schedules import crontab
from kombu import Exchange, Queue from kombu import Exchange, Queue
from smartdoc import settings from smartdoc import settings
from .heatbeat import * from .heartbeat import *
# set the default Django settings module for the 'celery' program. # set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'smartdoc.settings') os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'smartdoc.settings')

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -48,7 +48,7 @@ const typeList: any = {
export function getImgUrl(name: string) { export function getImgUrl(name: string) {
const list = Object.values(typeList).flat() const list = Object.values(typeList).flat()
const type = list.includes(fileType(name).toLowerCase()) ? fileType(name).toLowerCase() : 'unknow' const type = list.includes(fileType(name).toLowerCase()) ? fileType(name).toLowerCase() : 'unknown'
return new URL(`../assets/fileType/${type}-icon.svg`, import.meta.url).href return new URL(`../assets/fileType/${type}-icon.svg`, import.meta.url).href
} }
// 是否是白名单后缀 // 是否是白名单后缀