feat(login): 删除还没有账号? 注册
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m19s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m19s
This commit is contained in:
@@ -23,7 +23,6 @@
|
||||
import { Editor, Toolbar } from '@wangeditor/editor-for-vue'
|
||||
import { useUserStore } from '@/store/modules/user'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import EmojiText from '@/utils/ui/emojo'
|
||||
import { IDomEditor } from '@wangeditor/editor'
|
||||
|
||||
const modelValue = defineModel<string>({ required: true })
|
||||
@@ -64,12 +63,12 @@
|
||||
headers: { Authorization: accessToken },
|
||||
// 单个文件上传成功之后
|
||||
onSuccess() {
|
||||
ElMessage.success(`图片上传成功 ${EmojiText[200]}`)
|
||||
ElMessage.success('图片上传成功')
|
||||
},
|
||||
// 上传错误,或者触发 timeout 超时
|
||||
onError(file: File, err: any, res: any) {
|
||||
console.log(`上传出错`, err, res)
|
||||
ElMessage.error(`图片上传失败 ${EmojiText[500]}`)
|
||||
ElMessage.error('图片上传失败')
|
||||
}
|
||||
// 注意:返回格式需要按照指定格式返回,才能显示图片
|
||||
// 上传成功的返回格式:
|
||||
|
||||
Reference in New Issue
Block a user