fix: 导出excel时未导入config
This commit is contained in:
parent
b8d49dd356
commit
73d3724e8e
|
|
@ -263,7 +263,7 @@
|
||||||
import saveDialog from "./ep_form.vue";
|
import saveDialog from "./ep_form.vue";
|
||||||
import ScBind from "@/components/scBind/index.vue";
|
import ScBind from "@/components/scBind/index.vue";
|
||||||
import { genTree } from "@/utils/verificate";
|
import { genTree } from "@/utils/verificate";
|
||||||
|
import config from "@/config"
|
||||||
export default {
|
export default {
|
||||||
name: "employee",
|
name: "employee",
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -509,6 +509,7 @@ export default {
|
||||||
that.cLoading = false;
|
that.cLoading = false;
|
||||||
that.ElLoading.close();
|
that.ElLoading.close();
|
||||||
let urls = config.API_URL.slice(0,-4)+res.path;
|
let urls = config.API_URL.slice(0,-4)+res.path;
|
||||||
|
console.log(urls)
|
||||||
window.open(urls, "_blank");
|
window.open(urls, "_blank");
|
||||||
}).catch(e=>{
|
}).catch(e=>{
|
||||||
that.cLoading = false;
|
that.cLoading = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue