fix: Anchor point positioning error of the discriminator node (#3710)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run

This commit is contained in:
shaohuzhang1 2025-07-22 19:00:35 +08:00 committed by GitHub
parent bc6a5a8869
commit ef549c7c89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -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",

View File

@ -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
}
// 是否是白名单后缀