File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -83,14 +83,14 @@ export default defineConfig({
8383然后在 ` src/main.ts ` 或 ` src/main.js ` 处自行添加 polyfill。以下是使用 [ core-js] ( https://github.com/zloirock/core-js ) 的示例(需要自行安装 ` core-js ` ),你也可以使用 [ es-shims] ( https://github.com/es-shims ) 。
8484
8585``` typescript
86- import ' core-js/actual/array/iterator' ;
87- import ' core-js/actual/promise' ;
88- import ' core-js/actual/object/assign' ;
89- import ' core-js/actual/promise/finally' ;
9086// 你可以根据需要自行添加额外的 polyfills
9187// import 'core-js/actual/object/values'
9288import { createSSRApp } from ' vue' ;
9389import App from ' ./App.vue' ;
90+ import ' core-js/actual/array/iterator' ;
91+ import ' core-js/actual/promise' ;
92+ import ' core-js/actual/object/assign' ;
93+ import ' core-js/actual/promise/finally' ;
9494
9595export function createApp() {
9696 const app = createSSRApp (App );
Original file line number Diff line number Diff line change @@ -40,14 +40,14 @@ export default defineConfig({
4040然后在 ` src/main.ts ` 或 ` src/main.js ` 处自行添加 polyfill。以下是使用 [ core-js] ( https://github.com/zloirock/core-js ) 的示例(需要自行安装 ` core-js ` ),你也可以使用 [ es-shims] ( https://github.com/es-shims ) 。
4141
4242``` typescript
43- import ' core-js/actual/array/iterator' ;
44- import ' core-js/actual/promise' ;
45- import ' core-js/actual/object/assign' ;
46- import ' core-js/actual/promise/finally' ;
4743// 你可以根据需要自行添加额外的 polyfills
4844// import 'core-js/actual/object/values'
4945import { createSSRApp } from ' vue' ;
5046import App from ' ./App.vue' ;
47+ import ' core-js/actual/array/iterator' ;
48+ import ' core-js/actual/promise' ;
49+ import ' core-js/actual/object/assign' ;
50+ import ' core-js/actual/promise/finally' ;
5151
5252export function createApp() {
5353 const app = createSSRApp (App );
Original file line number Diff line number Diff line change @@ -193,9 +193,9 @@ export function useDownloadFile<T = any>(
193193 const result
194194 // @ts -expect-error no types
195195 = r ?. data
196- ?? ( {
197- tempFilePath : r ?. tempFilePath ,
198- } as unknown as T ) ;
196+ ?? ( {
197+ tempFilePath : r ?. tempFilePath ,
198+ } as unknown as T ) ;
199199 data . value = result ;
200200 onSuccess ( result ) ;
201201 } ,
Original file line number Diff line number Diff line change 55## 使用方式
66
77``` ts
8- import { tabBar } from ' @/pages.json' ;
98import { useRouter } from ' @uni-helper/uni-use' ;
9+ import { tabBar } from ' @/pages.json' ;
1010
1111const router = useRouter ({
1212 /**
You can’t perform that action at this time.
0 commit comments