Skip to content

Commit

Permalink
fix tools
Browse files Browse the repository at this point in the history
  • Loading branch information
snice committed Dec 9, 2023
1 parent 8d48817 commit 17553bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/components/uni-package.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ import {
} from 'ant-design-vue'
import { PlusOutlined, MinusOutlined, DownloadOutlined } from '@ant-design/icons-vue'
import { h, ref, computed } from 'vue';
import { saveAs } from 'file-saver';
import FileSaver from 'file-saver';
const activeKey = ref('1');
const androidPlugin = ref(true)
const iosPlugin = ref(false)
Expand Down Expand Up @@ -289,7 +288,7 @@ const pJson = computed(() => {
})
const download = async () => {
var blob = new Blob([pJson.value], { type: "application/json;charset=utf-8" });
saveAs(blob, "package.json");
FileSaver.saveAs(blob, "package.json");
}
</script>

Expand Down

0 comments on commit 17553bc

Please sign in to comment.