Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mingchiuli committed Jul 7, 2024
1 parent fbd9315 commit f2ed5b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/sys/EditView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,10 @@ const handleTagClose = (tagName: string) => {
const dealComposing = (payload: boolean) => composing = payload
const dealSensitive = (payload: string) => sensitiveTags.value.push({ name: payload, type: 'warning' })
const dealSensitive = (payload: string) => {
sensitiveTags.value.push({ name: payload, type: 'warning' })
sensitiveTags.value = sensitiveTags.value.filter((item, index) => sensitiveTags.value.indexOf(item) === index)
}
const beforeAvatarUpload: UploadProps['beforeUpload'] = (rawFile) => {
if (rawFile.type !== 'image/jpeg' && rawFile.type !== 'image/png') {
Expand Down

0 comments on commit f2ed5b0

Please sign in to comment.