mirror of https://github.com/halo-dev/halo-admin
unlink axios import
parent
b7d1334a0e
commit
0e09532812
|
@ -127,7 +127,7 @@
|
||||||
import { PageView } from '@/layouts'
|
import { PageView } from '@/layouts'
|
||||||
import { mixin, mixinDevice } from '@/utils/mixin.js'
|
import { mixin, mixinDevice } from '@/utils/mixin.js'
|
||||||
import attachmentApi from '@/api/attachment'
|
import attachmentApi from '@/api/attachment'
|
||||||
import axios from 'axios'
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
PageView
|
PageView
|
||||||
|
@ -227,7 +227,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleUpload(option) {
|
handleUpload(option) {
|
||||||
this.$log.debug('Uploading option', option)
|
this.$log.debug('Uploading option', option)
|
||||||
const CancelToken = axios.CancelToken
|
const CancelToken = attachmentApi.CancelToken
|
||||||
const source = CancelToken.source()
|
const source = CancelToken.source()
|
||||||
|
|
||||||
const data = new FormData()
|
const data = new FormData()
|
||||||
|
|
Loading…
Reference in New Issue