{"id":790,"date":"2024-05-03T20:50:43","date_gmt":"2024-05-03T12:50:43","guid":{"rendered":"http:\/\/senkin.00xm.top\/?p=790"},"modified":"2024-05-03T20:50:43","modified_gmt":"2024-05-03T12:50:43","slug":"%e5%bc%80%e6%ba%90%e7%89%88%e3%80%8c%e6%8a%96%e9%9f%b3%e3%80%8d%ef%bc%8c%e7%81%ab%e4%ba%86%ef%bc%81%e5%9f%ba%e4%ba%8e-vue%e3%80%81vite-%e7%9a%84%e7%a7%bb%e5%8a%a8%e7%ab%af%e7%9f%ad%e8%a7%86%e9%a2%91","status":"publish","type":"post","link":"https:\/\/senkin.00xm.top\/?p=790","title":{"rendered":"\u5f00\u6e90\u7248\u300c\u6296\u97f3\u300d\uff0c\u706b\u4e86\uff01\u57fa\u4e8e Vue\u3001Vite \u7684\u79fb\u52a8\u7aef\u77ed\u89c6\u9891\u5f00\u6e90\u9879\u76ee\u3010\u5e26\u6e90\u7801\u3011"},"content":{"rendered":"\n<p>douyin \u662f\u4e00\u4e2a\u6a21\u4eff\u6296\u97f3\u7684\u79fb\u52a8\u7aef\u77ed\u89c6\u9891\u5f00\u6e90\u9879\u76ee\uff0c\u5b83\u57fa\u4e8e Vue\u3001Vite\u5b9e\u73b0\u3002\u4f7f\u7528\u4e86\u6700\u65b0\u7684 Vue \u5168\u5bb6\u6876\u6280\u672f\u6808\uff0c\u63a5\u53e3\u6570\u636e\u901a\u8fc7 axios-mock-adapter\u6a21\u62df\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"703\" src=\"http:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740561-image-1024x703.png\" alt=\"\" class=\"wp-image-791\" srcset=\"https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740561-image-1024x703.png 1024w, https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740561-image-300x206.png 300w, https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740561-image-768x527.png 768w, https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740561-image.png 1080w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u9879\u76ee\u5730\u5740\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/zyronon\/douyin\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/github.com\/zyronon\/douyin<\/a><\/p>\n\n\n\n<p>\u6548\u679c\u622a\u56fe<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"903\" src=\"http:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740584-image-1024x903.png\" alt=\"\" class=\"wp-image-792\" srcset=\"https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740584-image-1024x903.png 1024w, https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740584-image-300x264.png 300w, https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740584-image-768x677.png 768w, https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740584-image.png 1080w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"461\" height=\"1024\" src=\"http:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740615-image-461x1024.png\" alt=\"\" class=\"wp-image-793\" style=\"width:758px;height:auto\" srcset=\"https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740615-image-461x1024.png 461w, https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740615-image-135x300.png 135w, https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740615-image-768x1707.png 768w, https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740615-image-691x1536.png 691w, https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740615-image-922x2048.png 922w, https:\/\/senkin.00xm.top\/wp-content\/uploads\/2024\/05\/1714740615-image.png 1080w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/figure>\n\n\n\n<p>\u8fd0\u884c\u9879\u76ee<\/p>\n\n\n\n<p>\u672c\u9879\u76ee\u662f\u57fa\u4e8e Vue \u5f00\u53d1\u7684\uff0c\u9700\u8981 node \u73af\u5883\u6765\u8fd0\u884c\u3002<\/p>\n\n\n\n<p>1\u3001\u5b89\u88c5 NodeJS\uff0c\u53c2\u8003\u5b98\u65b9\u6587\u6863<\/p>\n\n\n\n<p>2\u3001\u5b89\u88c5 pnpm \u5305\u7ba1\u7406\u5de5\u5177\uff0c\u8fd0\u884c npm install -g pnpm \u6765\u5b89\u88c5<\/p>\n\n\n\n<p>3\u3001\u4f7f\u7528 git clone&nbsp;<a href=\"https:\/\/github.com\/zyronon\/douyin.git\" rel=\"noreferrer noopener\" target=\"_blank\" rel=\"nofollow\" >https:\/\/github.com\/zyronon\/douyin.git<\/a>&nbsp;\u4e0b\u8f7d\u9879\u76ee\u5230\u672c\u5730<\/p>\n\n\n\n<p>4\u3001\u8fdb\u5165\u9879\u76ee\u76ee\u5f55 cd douyin\uff0c\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\uff0c\u8fd0\u884c pnpm install \u6765\u4e0b\u8f7d\u4f9d\u8d56\u3002<\/p>\n\n\n\n<p>5\u3001\u6267\u884c pnpm dev \u6765\u542f\u52a8\u9879\u76ee\uff0c\u9879\u76ee\u9ed8\u8ba4\u5730\u5740\u4e3a&nbsp;<a href=\"http:\/\/localhost:3000\/\" rel=\"noreferrer noopener\" target=\"_blank\" rel=\"nofollow\" >http:\/\/localhost:3000<\/a><\/p>\n\n\n\n<p>6\u3001\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00 http:\/\/localhost:3000\u6765\u8bbf\u95ee\u9879\u76ee\u3002Chrome \u5207\u6362\u6210\u624b\u673a\u6a21\u5f0f\u5feb\u6377\u952e\uff0c\u5148\u6309 F12 \u8c03\u51fa\u63a7\u5236\u53f0\uff0c\u518d\u6309 Ctrl+Shift+M\uff08\u8bbe\u5907\u4eff\u771f\u6a21\u62df\uff09<\/p>\n\n\n\n<p>\u5728\u7ebf\u8bbf\u95ee<\/p>\n\n\n\n<p>Vercel\uff08\u56fd\u5185\u63a8\u8350\u8bbf\u95ee\u8fd9\u4e2a\uff09\uff1a<\/p>\n\n\n\n<p><a href=\"http:\/\/dy.ttentau.top\/\" rel=\"noreferrer noopener\" target=\"_blank\" rel=\"nofollow\" >http:\/\/dy.ttentau.top<\/a><\/p>\n\n\n\n<p>\u6ce8\u610f\uff1aPC \u6d4f\u89c8\u5668\u8bf7\u7528\u624b\u673a\u6a21\u5f0f\u8bbf\u95ee\u3002\u5148\u6309 F12 \u8c03\u51fa\u63a7\u5236\u53f0\uff0c\u518d\u6309 Ctrl+Shift+M \u5207\u6362\u5230\u624b\u673a\u6a21\u5f0f<\/p>\n\n\n\n<p>\u6ce8\u610f\uff1a\u624b\u673a\u8bf7\u7528 Via \u6d4f\u89c8\u5668\u6216\u8005 Chrome \u6d4f\u89c8\u5668\u9884\u89c8\u3002\u5176\u5b83\u6d4f\u89c8\u5668\u4f1a\u5f3a\u5236\u5c06\u89c6\u9891\u5168\u5c4f\uff0c\u5bfc\u81f4\u6837\u5f0f\u5931\u6548<\/p>\n\n\n\n<p>\u6839\u636e\u4ed3\u5e93\u7684 commit \u8bb0\u5f55\uff0c\u4f5c\u8005\u65e9\u5728 6 \u5e74\u524d\u5c31\u5df2\u7ecf\u542f\u52a8\u4e86\u8fd9\u4e2a\u9879\u76ee\uff0c\u575a\u6301\u5230\u73b0\u5728\u4ecd\u672a\u653e\u5f03\uff0c\u5e76\u4e14\u65e0\u79c1\u5730\u5f00\u6e90\u4e86\u51fa\u6765\u3002\u771f\u4e43\u6211\u8f88\u6977\u6a21\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>douyin \u662f\u4e00\u4e2a\u6a21\u4eff\u6296\u97f3\u7684\u79fb\u52a8\u7aef\u77ed\u89c6\u9891\u5f00\u6e90\u9879\u76ee\uff0c\u5b83\u57fa\u4e8e Vue\u3001Vite\u5b9e\u73b0\u3002\u4f7f\u7528\u4e86\u6700\u65b0\u7684 Vue \u5168\u5bb6\u6876\u6280\u672f\u6808\uff0c\u63a5\u53e3\u6570\u636e\u901a\u8fc7 &#8230;<\/p>","protected":false},"author":1,"featured_media":793,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/posts\/790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=790"}],"version-history":[{"count":2,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/posts\/790\/revisions"}],"predecessor-version":[{"id":795,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/posts\/790\/revisions\/795"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=\/wp\/v2\/media\/793"}],"wp:attachment":[{"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/senkin.00xm.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}