{"id":1039,"date":"2023-03-12T09:52:26","date_gmt":"2023-03-12T01:52:26","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1039"},"modified":"2023-04-29T13:10:09","modified_gmt":"2023-04-29T05:10:09","slug":"resolve-issue-of-inaccessible-ip-addresses-in-vue-project","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/12\/resolve-issue-of-inaccessible-ip-addresses-in-vue-project\/","title":{"rendered":"\u89e3\u51b3vue\u9879\u76eeip\u5730\u5740\u65e0\u6cd5\u8bbf\u95ee\u7684\u95ee\u9898"},"content":{"rendered":"<p>vue\u811a\u624b\u67b6vue-cli\u8d77\u7684webpack\u9879\u76ee\uff0c\u4f7f\u7528localhost\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee\uff0c\u5207\u6362\u5230ip\u5c31\u63d0\u793a\u65e0\u6cd5\u8bbf\u95ee\u6b64\u7f51\u7ad9\u3002<\/p>\n<p>\u4fee\u6539config\u76ee\u5f55\u4e0b\u7684index.js<\/p>\n<p><!-- more --><\/p>\n<p>\u5c06<\/p>\n<pre><code class=\"language-javascript\">host: &#039;localhost&#039;<\/code><\/pre>\n<p>\u6539\u4e3a<\/p>\n<pre><code class=\"language-javascript\">host: &#039;0.0.0.0&#039;<\/code><\/pre>\n<p>\u91cd\u542fvue\u9879\u76ee<\/p>\n<pre><code>> npm run dev<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>vue\u811a\u624b\u67b6vue-cli\u8d77\u7684webpack\u9879\u76ee\uff0c\u4f7f\u7528localhost\u53ef\u4ee5\u6b63\u5e38\u8bbf\u95ee\uff0c\u5207\u6362\u5230ip\u5c31\u63d0\u793a\u65e0\u6cd5\u8bbf\u95ee [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[],"class_list":["post-1039","post","type-post","status-publish","format-standard","hentry","category-vue"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1039"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1039\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}