name: getNameByType()

in studio/components/studio-sider/use-file.ts [178:192]


      name: getNameByType(type, name),
      content: content || ''
    })
  }

  const onCreateFile = (type: FileType) => void create(true, type)

  const onCreateFolder = () => void create(false, '')

  const onSelectFile = (key: number) => {
    state.currentKey = key
  }

  const onInputBlur = async (value: string) => {
    if (state.isCreating) {