File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
.vitepress/theme/components Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 4141 run : yarn install --immutable
4242
4343 - name : Build with VitePress
44- run : yarn docs: build
44+ run : yarn build:docs
4545
4646 - name : Upload artifact
4747 uses : actions/upload-pages-artifact@v3
Original file line number Diff line number Diff line change 2525 "build" : " tsup" ,
2626 "test" : " vitest run" ,
2727 "dev" : " yarn build && (sleep 1 && open http://localhost:4000/playground/ &) && npx serve -l 4000 ." ,
28- "docs: dev" : " vitepress dev website" ,
29- "docs: build" : " vitepress build website" ,
30- "docs: preview" : " vitepress preview website"
28+ "dev:docs " : " vitepress dev website" ,
29+ "build:docs " : " vitepress build website" ,
30+ "preview:docs " : " vitepress preview website"
3131 },
3232 "keywords" : [
3333 " stock" ,
Original file line number Diff line number Diff line change @@ -506,6 +506,7 @@ function clearResult() {
506506onMounted (async () => {
507507 initParams ()
508508 try {
509+ // @ts-ignore
509510 const module = await import (' https://unpkg.com/stock-sdk/dist/index.js' )
510511 sdk .value = new module .StockSDK ()
511512 sdkLoaded .value = true
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ import cron from 'node-cron';
171171// 每分钟更新一次(交易时间)
172172cron .schedule (' * 9-15 * * 1-5' , async () => {
173173 const quotes = await sdk .getAllAShareQuotes ();
174- // 保存到数据库或缓存
174+ // 保存到数据库或缓存等操作
175175 await saveToDatabase (quotes );
176176});
177177```
You can’t perform that action at this time.
0 commit comments