mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 14:26:43 +08:00
2022年5月29日从svn移到git
This commit is contained in:
15
src/api/tools.js
Normal file
15
src/api/tools.js
Normal file
@@ -0,0 +1,15 @@
|
||||
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})
|
||||
}
|
||||
Reference in New Issue
Block a user