mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:02:46 +00:00
fix: Anchor point positioning error of the discriminator node (#3710)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
This commit is contained in:
parent
bc6a5a8869
commit
ef549c7c89
|
|
@ -38,6 +38,7 @@
|
|||
"mermaid": "^10.9.0",
|
||||
"mitt": "^3.0.0",
|
||||
"moment": "^2.30.1",
|
||||
"nanoid": "^5.1.5",
|
||||
"npm": "^10.2.4",
|
||||
"nprogress": "^0.2.0",
|
||||
"pinia": "^2.1.6",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { MsgError } from '@/utils/message'
|
||||
|
||||
import { nanoid } from 'nanoid'
|
||||
export function toThousands(num: any) {
|
||||
return num?.toString().replace(/\d+/, function (n: any) {
|
||||
return n.replace(/(\d)(?=(?:\d{3})+$)/g, '$1,')
|
||||
|
|
@ -25,7 +25,7 @@ export function filesize(size: number) {
|
|||
随机id
|
||||
*/
|
||||
export const randomId = function () {
|
||||
return Math.floor(Math.random() * 10000) + ''
|
||||
return nanoid()
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -48,7 +48,9 @@ const typeList: any = {
|
|||
export function getImgUrl(name: string) {
|
||||
const list = Object.values(typeList).flat()
|
||||
|
||||
const type = list.includes(fileType(name).toLowerCase()) ? fileType(name).toLowerCase() : 'unknown'
|
||||
const type = list.includes(fileType(name).toLowerCase())
|
||||
? fileType(name).toLowerCase()
|
||||
: 'unknown'
|
||||
return new URL(`../assets/fileType/${type}-icon.svg`, import.meta.url).href
|
||||
}
|
||||
// 是否是白名单后缀
|
||||
|
|
|
|||
Loading…
Reference in New Issue