common.js
467 Bytes
import { GlAxios } from 'glsx-vue-common'
import axios from './axios'
const path = '/smartAdmin/sysCode/'
const path1 = '/smartService/sysFile/'
// 获取字典
function getDict(params) {
return GlAxios.get(`${path}getList`, { params })
}
// 保存图片
function batchSaveFile(data, baseURl) {
return axios.post(`${baseURl}${path1}batchSaveFile`, data, {
headers: {
'Content-Type': 'application/json'
}
})
}
export { getDict, batchSaveFile }