Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

refactor: attachment selection modal #420

Merged
merged 8 commits into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,52 +108,14 @@
<script>
import { mixin, mixinDevice } from '@/mixins/mixin.js'
import apiClient from '@/utils/api-client'

const attachmentType = {
LOCAL: {
type: 'LOCAL',
text: '本地'
},
SMMS: {
type: 'SMMS',
text: 'SM.MS'
},
UPOSS: {
type: 'UPOSS',
text: '又拍云'
},
QINIUOSS: {
type: 'QINIUOSS',
text: '七牛云'
},
ALIOSS: {
type: 'ALIOSS',
text: '阿里云'
},
BAIDUBOS: {
type: 'BAIDUBOS',
text: '百度云'
},
TENCENTCOS: {
type: 'TENCENTCOS',
text: '腾讯云'
},
HUAWEIOBS: {
type: 'HUAWEIOBS',
text: '华为云'
},
MINIO: {
type: 'MINIO',
text: 'MinIO'
}
}
import { attachmentTypes } from '@/core/constant'

export default {
name: 'AttachmentDetailModal',
mixins: [mixin, mixinDevice],
filters: {
typeText(type) {
return type ? attachmentType[type].text : ''
return type ? attachmentTypes[type].text : ''
}
},
props: {
Expand Down
169 changes: 0 additions & 169 deletions src/components/Attachment/AttachmentSelectDrawer.vue

This file was deleted.

Loading