浏览代码

merge fix

scorpio 2 年之前
父节点
当前提交
a056ce546b
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/home/component/dash.vue

+ 3 - 3
src/views/home/component/dash.vue

@@ -394,7 +394,7 @@ export default {
         cancelButtonText: '取消',
         type: 'warning'
       }).then(() => {
-        const data = {id: res.id, is_report: 1}
+        const data = { id: res.id, is_report: 1 }
         this.$api.project.proUpdate(data).then(res => {
           if (res.code === 200) {
             this.onLoad()
@@ -441,7 +441,7 @@ export default {
           this.$message.error(res.msg)
           return
         }
-        const url = window.URL.createObjectURL(new Blob([res], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8' }))
+        const url = window.URL.createObjectURL(new Blob([res], { type: 'application/vnd.ms-excel' }))
         const link = document.createElement('a')
         link.style.display = 'none'
         link.href = url
@@ -462,7 +462,7 @@ export default {
           return
         }
         console.log(res)
-        const url = window.URL.createObjectURL(new Blob([res], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8' }))
+        const url = window.URL.createObjectURL(new Blob([res], { type: 'application/vnd.ms-excel' }))
         const link = document.createElement('a')
         link.style.display = 'none'
         link.href = url