mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 22:57:08 +08:00
支持上传自定义图标
This commit is contained in:
@@ -123,7 +123,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getCompanyInfo, postCompanyInfo, putCompanyInfo, postImageFile } from '@/api/company'
|
||||
import { getCompanyInfo, postCompanyInfo, putCompanyInfo } from '@/api/company'
|
||||
import { postImageFile } from '@/api/file'
|
||||
import { mapMutations, mapState } from 'vuex'
|
||||
import SpanTitle from '../components/spanTitle.vue'
|
||||
import EditImage from '../components/EditImage.vue'
|
||||
|
@@ -51,7 +51,7 @@
|
||||
:customRequest="customRequest"
|
||||
:before-upload="beforeUpload"
|
||||
:style="{ width: '310px', height: '100px' }"
|
||||
accept="png,jpg,jpeg"
|
||||
accept=".svg,.png,.jpg,.jpeg"
|
||||
>
|
||||
<a-button type="primary" ghost size="small">更换头像</a-button>
|
||||
</a-upload>
|
||||
@@ -133,7 +133,8 @@
|
||||
|
||||
<script>
|
||||
import { mapActions, mapGetters } from 'vuex'
|
||||
import { getAllDepartmentList, postImageFile } from '@/api/company'
|
||||
import { getAllDepartmentList } from '@/api/company'
|
||||
import { postImageFile } from '@/api/file'
|
||||
import {
|
||||
getEmployeeList,
|
||||
getEmployeeByUid,
|
||||
|
Reference in New Issue
Block a user