Browse Source

引入 flatMap 的 Polyfill

Hwf 1 month ago
parent
commit
ec70ad0140
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/main.ts

+ 1 - 2
src/main.ts

@@ -1,6 +1,5 @@
 import { createApp } from 'vue';
-import 'core-js/stable'; // 引入所有稳定版 Polyfill
-import 'regenerator-runtime/runtime'; // 支持 async/await
+import 'core-js/es/array/flat-map'; // 引入 flatMap 的 Polyfill
 // global css
 import 'virtual:uno.css';
 import '@/assets/styles/index.scss';