liuguocan
2023-02-24 f82dccc18d2dc59b6598e5f83658cbe965a8c210
src/plugins/download.js
@@ -5,12 +5,9 @@
import errorCode from '@/utils/errorCode'
import { blobValidate } from "@/utils/ruoyi";
// const baseURL = process.env.VUE_APP_BASE_API
const baseURL = "http://localhost:8082/admin";
export default {
  name(name, isDelete = true) {
    var url = baseURL + "/common/download?fileName=" + encodeURI(name) + "&delete=" + isDelete
    var url = globalConf.ftpUrl + "/common/download?fileName=" + encodeURI(name) + "&delete=" + isDelete
    axios({
      method: 'get',
      url: url,
@@ -27,7 +24,7 @@
    })
  },
  resource(resource) {
    var url = baseURL + "/common/download/resource?resource=" + encodeURI(resource);
    var url = globalConf.ftpUrl + "/common/download/resource?resource=" + encodeURI(resource);
    axios({
      method: 'get',
      url: url,
@@ -44,7 +41,7 @@
    })
  },
  zip(url, name) {
    var url = baseURL + url;
    var url = globalConf.ftpUrl + url;
    axios({
      method: 'get',
      url: url,