mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
16 lines
333 B
JavaScript
16 lines
333 B
JavaScript
import ajax from '@/utils/xajax.js'
|
|
|
|
|
|
|
|
export function uploadImage(code,urlformat) {
|
|
var u=true;
|
|
if(urlformat){
|
|
u=urlformat;
|
|
}
|
|
return ajax.post('/xboe/sys/xuploader/file/upload',{url:u,size:150,code:code});
|
|
}
|
|
|
|
export function upload(file) {
|
|
return ajax.postForm('/xboe/sys/xuploader/file/upload',file,{timeout: 0})
|
|
}
|