guoshilong
2023-09-28 cbcb844edf5c3bef84560af8bde1e4973fab7f3a
修改打包文件失效的问题
1 files modified
5 ■■■■ changed files
src/components/MediaPanel.vue 5 ●●●● patch | view | raw | blame | history
src/components/MediaPanel.vue
@@ -370,6 +370,7 @@
    })
    Promise.all(promiseList).then(res => {
      console.log(res, '+++++++++++')
      res.forEach(e => {
        zip.file(e.name, e.data, { base64: true })
      })
@@ -393,10 +394,6 @@
      .then((response) => {
        const ext = url.split('.')[1]
        // 若文件名不以后缀结尾,则手动添加后缀
        if (!name.endsWith(ext)) {
          name = name + '.' + ext
        }
        resolve({
          name: name,
          data: response.data