mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
chore: fix typo
This commit is contained in:
parent
7a99c78840
commit
cb104cc211
|
|
@ -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')
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
|
@ -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
|
||||||
}
|
}
|
||||||
// 是否是白名单后缀
|
// 是否是白名单后缀
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue