洪海涛 4 жил өмнө
parent
commit
36176640c1
3 өөрчлөгдсөн 4 нэмэгдсэн , 1 устгасан
  1. 0 1
      package.json
  2. 1 0
      public/index.html
  3. 3 0
      vue.config.js

+ 0 - 1
package.json

@@ -36,7 +36,6 @@
     "file-saver": "^2.0.2",
     "gantt-elastic": "^1.0.11",
     "gantt-elastic-header": "^0.1.11",
-    "html2canvas": "^1.0.0-rc.3",
     "js-cookie": "2.2.0",
     "jspdf": "^1.5.3",
     "less": "^2.7.3",

+ 1 - 0
public/index.html

@@ -17,5 +17,6 @@
     </noscript>
     <div id="app"></div>
     <!-- built files will be auto injected -->
+    <script src="https://unpkg.com/html2canvas@1.0.0-rc.3/dist/html2canvas.js"></script>
   </body>
 </html>

+ 3 - 0
vue.config.js

@@ -39,6 +39,9 @@ module.exports = {
       alias: {
         '@': resolve('src')
       }
+    },
+    externals: {
+      'html2canvas': 'html2canvas'
     }
   },
   chainWebpack(config) {