diff --git a/src/App.vue b/src/App.vue index 08f9635..04a2129 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,6 +5,8 @@ diff --git a/src/api/index.ts b/src/api/index.ts index 41e3979..f0fb503 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -14,8 +14,10 @@ const getDispositionName = (response: any) => { //导出表格,从content-disposition获取表格的名称 只有导出服务端才会返回该字段 const contentDisposition = response.headers["content-disposition"]; if (contentDisposition) { + let contentDispositionClone = decodeURIComponent(contentDisposition); + console.log(contentDispositionClone); // 解析 Content-Disposition 以提取文件名 - const filenameMatch = contentDisposition.match(/filename=(.*)/i); + const filenameMatch = contentDispositionClone.match(/filename=(.*)/i); if (filenameMatch && filenameMatch[1]) { let filename = filenameMatch[1].trim(); localStorage.setItem("filename", filename); diff --git a/src/components/ProTable/index.vue b/src/components/ProTable/index.vue index a10397c..ce8e3b7 100644 --- a/src/components/ProTable/index.vue +++ b/src/components/ProTable/index.vue @@ -83,7 +83,7 @@ diff --git a/src/views/productManagement/list/constant/edit.ts b/src/views/productManagement/list/constant/edit.ts index f8fb54c..8d49e11 100644 --- a/src/views/productManagement/list/constant/edit.ts +++ b/src/views/productManagement/list/constant/edit.ts @@ -109,22 +109,22 @@ export const BASIC_INFO_FORM_DATA: FormItem[] = [ ] }, - { - prop: "is_show1", - placeholder: "", - type: "radio", - label: "是否启用: ", - options: [ - { - label: "是", - value: 1 - }, - { - label: "否", - value: 0 - } - ] - }, + // { + // prop: "is_show1", + // placeholder: "", + // type: "radio", + // label: "是否启用: ", + // options: [ + // { + // label: "是", + // value: 1 + // }, + // { + // label: "否", + // value: -1 + // } + // ] + // }, { prop: "seo_title",