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