Compare commits

2 Commits

Author SHA1 Message Date
69643dbc83 chore: prettier配置 2026-02-05 10:07:39 +08:00
f3a707d6d8 feat: 上传过程中不允许删除文件 2026-02-05 10:07:30 +08:00
2 changed files with 37 additions and 1 deletions

33
.prettierrc.js Normal file
View File

@@ -0,0 +1,33 @@
/** @type {import('prettier').Config} */
module.exports = {
// 打印宽度
printWidth: 100,
// 使用 4 空格缩进
tabWidth: 4,
// 使用 4 空格缩进,不使用制表符
useTabs: true,
// 行尾使用 LF (Unix 风格)
endOfLine: 'lf',
// 语句末尾使用分号
semi: false,
// 使用单引号
singleQuote: false,
// 对象和数组末尾不添加尾随逗号
trailingComma: 'none',
// JSX 引号使用单引号
jsxSingleQuote: false,
// 括号内侧空格
bracketSpacing: true,
// JSX 标签不换行
bracketSameLine: false,
// 箭头函数参数始终使用括号
arrowParens: 'always',
// HTML、Vue、Angular 和 Markdown 使用 LF
htmlWhitespaceSensitivity: 'css',
// Vue 文件脚本和样式缩进
vueIndentScriptAndStyle: false,
// 行注释位置在注释上方,不加空格
proseWrap: 'preserve',
// 根据文件类型自动推断
embeddedLanguageFormatting: 'auto',
};

View File

@@ -205,6 +205,7 @@
</p>
<template #itemRender="{ file, actions }">
<div
v-show="pdfUploadStatus === 'success'"
class="custom-upload-list flex align-center space-between"
>
<div class="flex align-center">
@@ -280,6 +281,7 @@
</p>
<template #itemRender="{ file, actions }">
<div
v-show="videoUploadStatus === 'success'"
class="custom-upload-list flex align-center space-between"
>
<div class="flex align-center">
@@ -982,7 +984,8 @@
uploadId: chunkUploadState[type].uploadId,
email: form.value.email,
fileName: file.name,
secureToken: form.value.secureToken
secureToken: form.value.secureToken,
totalSize: file.size
})
} catch (error) {
console.log('complete错误', error)