{"id":10006558,"date":"2022-09-21T10:19:52","date_gmt":"2022-09-21T02:19:52","guid":{"rendered":"https:\/\/ityet.com\/?p=10006558"},"modified":"2022-09-21T10:19:52","modified_gmt":"2022-09-21T02:19:52","slug":"%e7%88%86%e8%82%9d%e6%92%b8%e4%ba%86%e4%b8%aa%e7%be%8a%e4%ba%86%e4%b8%aa%e7%be%8a%e9%80%9a%e5%85%b3%e5%8a%a9%e6%89%8b","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006558","title":{"rendered":"\u7206\u809d\u64b8\u4e86\u4e2a\u201c\u7f8a\u4e86\u4e2a\u7f8a\u201d\u901a\u5173\u52a9\u624b"},"content":{"rendered":"<p>\u6700\u8fd1\uff0c\u7f8a\u4e86\u4e2a\u7f8a\u751a\u662f\u706b\u7206\uff0c\u4ee5\u81f3\u4e8e\u5728\u4e0a\u5e02\u51e0\u5929\u540e\u4f5c\u8005\u5c31\u5728\u5e7f\u4e1c\u5168\u6b3e\u4e70\u4e86\u4e24\u5957\u623f\uff0c\u4f5c\u4e3a\u4e00\u4e2a\u975e\u6e38\u620f\u8ff7\u6211\u5bf9\u8fd9\u4e00\u60c5\u51b5\u771f\u662f\u4e0d\u89e3\uff0c\u4e0d\u5c31\u4e00\u4e2a\u5f00\u5fc3\u6d88\u6d88\u4e50\u6e38\u620f\uff0c\u4e3a\u5565\u4f1a\u5982\u6b64\u706b\u7206\u5462\uff1f\u6216\u8bb8\u8fd9\u5c31\u662f\u5c0f\u6e38\u620f\u7684\u9b45\u529b\u5427\uff0c\u4e00\u5982\u4e4b\u524d\u7684QQ\u519c\u573a\u3001FlyBird\u3002\u542c\u8bf4\u5f88\u591a\u4eba\u5728\u7b2c\u4e8c\u5173\u5c31\u683d\u4e86\uff0c\u4f5c\u4e3a\u7a0b\u5e8f\u5458\u7684\u6211\u4e5f\u60f3\u8e6d\u7740\u8fd9\u6ce2\u70ed\u91cf\u6765\u7ed9\u5927\u5bb6\u64b8\u4e00\u4e2a\u201c\u7f8a\u4e86\u4e2a\u7f8a\u201d\u901a\u5173\u52a9\u624b\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2y82\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<h2>\u524d\u8a00<\/h2>\n<p>\u672c\u9879\u76ee\u662f\u4f7f\u7528 Vue2 + Node.js\u5b9e\u73b0\u7f8a\u4e86\u4e2a\u7f8a\u5feb\u901f\u901a\u5173\uff0c\u4ec5\u4e3a\u5b66\u4e60\u4f7f\u7528\uff0c\u8bf7\u52ff\u4f7f\u7528\u672c\u7a0b\u5e8f\u6076\u610f\u5bf9\u6e38\u620f\u670d\u52a1\u5668\u6301\u7eed\u9020\u6210\u538b\u529b\uff0c\u4e00\u5207\u540e\u679c\u81ea\u8d1f\uff01\uff01\uff01<\/p>\n<p>\u7528\u5230\u7684\u6293\u5305\u5de5\u5177\uff1a<\/p>\n<ul>\n<li>Fiddler\/HTTPDebugger\/Charles\u3010PC\u3011<\/li>\n<li>HttpCarry\u3010Android\u3011<\/li>\n<li>Stream\u3010iphone\u3011<\/li>\n<\/ul>\n<p>\u652f\u6301\u7684\u7279\u6027\uff1a<\/p>\n<ul>\n<li>\u652f\u6301\u5728\u7ebf\u586b\u5199\u6293\u5305\u53c2\u6570<\/li>\n<li>\u652f\u6301\u968f\u673a\u751f\u6210\u65f6\u95f4\u548c\u81ea\u5b9a\u4e49\u65f6\u95f4<\/li>\n<li>\u6700\u5927\u652f\u630110\u6b21\u901a\u5173\uff0c\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u9700\u6c42\u66f4\u6539<\/li>\n<\/ul>\n<h2>\u542f\u52a8\u8fd0\u884c<\/h2>\n<pre><code># \u62f7\u8d1d\u4ee3\u7801\ngit clone https:\/\/github.com\/hu-snail\/vue-sheep.git\n# \u8fdb\u5165\u9879\u76ee\ncd vue-sheep\n# \u5b89\u88c5\u4f9d\u8d56\nyarn # or npm i\n# \u8fd0\u884c\nyarn serve<\/code><\/pre>\n<p>\u63d0\u793a\uff1a\u7531\u4e8e\u9879\u76ee\u662f\u4f7f\u7528\u989dVue2\uff0c\u6240\u4ee5\u5728\u8fd0\u884c\u7684\u65f6\u5019\u53ef\u80fd\u4f1a\u62a5\u9519\u3002\u5e38\u89c1\u7684\u62a5\u9519\u548c\u89e3\u51b3\u65b9\u6848\u5982\u4e0b\uff1a<br \/><strong>\u62a5\u95191<\/strong><\/p>\n<pre><code>Invalid options in vue.config.js: &quot;css.modules&quot; is not allowed<\/code><\/pre>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u5c06css\u8282\u70b9\u7684<code>modules:false<\/code>\u5220\u9664\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2y9Y\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u62a5\u95192<\/strong><\/p>\n<pre><code>ERROR in [eslint] ESLint is not a constructor\nERROR in Error: Child compilation failed:\n[eslint] ESLint is not a constructor<\/code><\/pre>\n<p>\u8fd9\u662f\u56e0\u4e3a\u5f00\u542f\u4e86eslint\u68c0\u67e5\uff0c\u7531\u4e8e\u7248\u672c\u4e0d\u4e00\u81f4\u53ef\u80fd\u4f1a\u62a5\u8fd9\u4e2a\u9519\u8bef\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a\u5173\u95edeslint\uff0c\u5728vue.config.js\u6587\u4ef6\u4e2d\u4e2d\u6dfb\u52a0\uff1a<code>lintOnSave: false<\/code>\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2y9R\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<h2>\u8fd0\u884c\u622a\u56fe<\/h2>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2y82\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u9879\u76ee\u6e90\u7801\uff1a <a href=\"https:\/\/link.segmentfault.com\/?enc=%2B2QetksGlwB%2BjRt2nidmag%3D%3D.iGodq67E6cVrrw5kATfwx0xfaQB3NhEfSVVvJZ8nUDSP1iIBGpgOHKNsxktWH9S7\" rel=\"nofollow\">https:\/\/github.com\/hu-snail\/vue-sheep<\/a><\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042518477\">https:\/\/segmentfault.com\/a\/1190000042518477<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\uff0c\u7f8a\u4e86\u4e2a\u7f8a\u751a\u662f\u706b\u7206\uff0c\u4ee5\u81f3\u4e8e\u5728\u4e0a\u5e02\u51e0\u5929\u540e\u4f5c\u8005\u5c31\u5728\u5e7f\u4e1c\u5168\u6b3e\u4e70\u4e86\u4e24\u5957\u623f\uff0c\u4f5c\u4e3a\u4e00\u4e2a\u975e\u6e38\u620f\u8ff7\u6211\u5bf9\u8fd9\u4e00\u60c5\u51b5\u771f\u662f\u4e0d\u89e3\uff0c\u4e0d [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006558","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006558"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006558\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}