{"id":194569,"date":"2020-10-30T16:25:25","date_gmt":"2020-10-30T08:25:25","guid":{"rendered":"http:\/\/4563.org\/?p=194569"},"modified":"2020-10-30T16:25:25","modified_gmt":"2020-10-30T08:25:25","slug":"vue-%e6%ad%a3%e5%bc%8f%e7%8e%af%e5%a2%83%e8%b7%a8%e5%9f%9f%e9%97%ae%e9%a2%98%ef%bc%8c%e8%b0%83%e7%94%a8%e7%9a%84%e4%ba%91%e7%ab%af%e6%9c%8d%e5%8a%a1%ef%bc%8c%e6%83%b3%e5%86%8d%e8%b0%83%e7%94%a8","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=194569","title":{"rendered":"Vue \u6b63\u5f0f\u73af\u5883\u8de8\u57df\u95ee\u9898\uff0c\u8c03\u7528\u7684\u4e91\u7aef\u670d\u52a1\uff0c\u60f3\u518d\u8c03\u7528\u672c\u5730\u670d\u52a1\uff0c\u5404\u4f4d\u5927\u4f6c\uff0c\u8fd9\u4e2a\u600e\u4e48\u641e\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Vue \u6b63\u5f0f\u73af\u5883\u8de8\u57df\u95ee\u9898\uff0c\u8c03\u7528\u7684\u4e91\u7aef\u670d\u52a1\uff0c\u60f3\u518d\u8c03\u7528\u672c\u5730\u670d\u52a1\uff0c\u5404\u4f4d\u5927\u4f6c\uff0c\u8fd9\u4e2a\u600e\u4e48\u641e\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : asionbo <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>vue \u6b63\u5f0f\u6253\u5305\u540e,\u670d\u52a1\u5728\u4e91\u7aef\uff0c\u60f3\u540c\u65f6\u8c03\u7528\u672c\u5730\u67d0\u4e2a\u670d\u52a1\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>40<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4214955\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sixway <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u77e5\u9053\u4f60\u60f3\u8981\u8868\u8fbe\u4ec0\u4e48\u610f\u601d\uff0c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214956\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : asionbo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6bd4\u5982 vue \u6b63\u5f0f\u8bbf\u95ee\u7684\u662f http:\/\/api\/v1\uff0c\u540c\u65f6\uff0c\u6211\u60f3\u8bbf\u95ee\u672c\u5730\u7684\u67d0\u4e2a\u670d\u52a1 http:\/\/api\/v3,<br \/>v1 \u670d\u52a1\u5728\u4e91\u7aef\uff0cv3 \u4e00\u5b9a\u662f\u90e8\u7f72\u5728\u8fd0\u884c vue \u6d4f\u89c8\u5668\u7684\u673a\u5668\u4e0a\u3002\u8fd9\u79cd\u600e\u4e48\u5b9e\u73b0                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214957\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : winnerczwx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u540e\u7aef\u5141\u8bb8\u8de8\u57df                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214958\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8c03\u7528\u672c\u5730\u662f\u6307\u7528\u6237\u7684 pc \u672c\u5730\uff1f\u8fd9\u65f6\u5019\u4f60\u76f4\u63a5\u8bbf\u95ee 127.0.0.1 \u5c31\u884c\u4e86\uff0c\u4f46\u662f\u8bdd\u8bf4\u56de\u6765\uff0c\u4f60\u7684\u5ba2\u6237\u4e00\u5b9a\u672c\u5730\u6709\u7ad9\u70b9\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214959\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ZSeptember <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4ee3\u7406                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214960\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jinliming2 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @asionbo \u4f60\u57df\u540d\u90fd\u662f api \uff1f<br \/>\u672c\u5730\u6539 hosts\uff0c\u57df\u540d api \u6307\u5411\u672c\u5730 127.0.0.1\uff0c\u7136\u540e\u672c\u5730\u5f00\u4e2a nginx\uff0c\/v1\/ proxy \u5230\u8fdc\u7a0b\uff0c\u901a\u8fc7 IP \u53cd\u5411\u4ee3\u7406\u6307\u5b9a host \u5934\u3002\/v3\/ proxy \u5230\u672c\u5730\u670d\u52a1\u3002<br \/>\u9664\u4e86 nginx\uff0c\u4e5f\u53ef\u4ee5\u7528\u5176\u4ed6\u7684 proxy \u7a0b\u5e8f\uff0c\u6bd4\u5982 http-proxy                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214961\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kiwier <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u628a\u672c\u5730\u670d\u52a1\u5185\u7f51\u7a7f\u900f\u5230\u516c\u7f51\u4e0a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214962\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : JerryCha <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u672c\u5730\u65e2\u7136\u8fd0\u884c\u4e86\u4e00\u4e2a\u670d\u52a1\uff0c\u90a3\u8ba9\u8fd9\u4e2a\u670d\u52a1\u66ff\u4f60\u8bf7\u6c42\u4e0d\u5c31\u597d\u4e86\u3002<br \/>\u6216\u8bb8\u4f60\u4eec\u6ca1\u6cd5\u63d2\u624b\u672c\u5730\u670d\u52a1\u7684\u5f00\u53d1\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214963\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cccp2020 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u76f4\u767d\u8ba9\u540e\u7aef\u8bbe\u7f6e\u8de8\u57df\u767d\u540d\u5355\uff0c\u968f\u4fbf\u8de8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214964\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : muzuiget <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53cd\u5411\u4ee3\u7406\u4e86\u89e3\u4e00\u4e0b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214965\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jiangzm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u597d\u7684\u65b9\u6cd5\u5c31\u662f\u672c\u5730\u4ee3\u7406\u4e0b\uff0c\u53ef\u4ee5\u5168\u90e8\u8bf7\u6c42\u8f6c\u5230\u672c\u5730\u670d\u52a1\u5668\uff0c\u6216\u8005\u6d4f\u89c8\u5668\u5b89\u88c5\u4e2a SwitchyOmega \u8bbe\u7f6e\u4e0b\u9700\u8981\u4ee3\u7406\u7684\u5730\u5740\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214966\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : RickyC <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u5c1d\u8bd5:<\/p>\n<p>\u6253\u5f00\u7f51\u7ad9 nGinx \u914d\u7f6e\u6587\u4ef6, \u5728 Server \u7684{}, \u52a0\u5165\u5982\u4e0b\u4ee3\u7801<\/p>\n<p>#\u89e3\u51b3\u8fdc\u7a0b\u8de8\u57df\u95ee\u9898<br \/>location \/api\/ {<br \/> proxy_pass http:\/\/\u8fdc\u7a0b\u670d\u52a1\u5668\u5730\u5740 \/api\/;<br \/>}<\/p>\n<p>\u91cd\u542f nGinx \u670d\u52a1\u540e\u53ef\u4ee5\u7528 http:\/\/\u672c\u5730\u5730\u5740 \/api \u8bbf\u95ee\u5230\u8fdc\u7a0b\u7684 api                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214967\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : galikeoy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @RickyC #12 \u4e3a\u4ec0\u4e48\u4f60\u7684 nGinx \u662f G \u5927\u5199\u7684\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214968\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : GressJoe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @galikeoy \u54c8\u54c8\u54c8\u54c8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214969\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yaphets666 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u672c\u673a\u4e0a\u7684\u670d\u52a1\u53ea\u6709\u5185\u7f51\u80fd\u8bbf\u95ee\u5230.\u56e0\u4e3a\u4f60\u7684\u672c\u673a\u6ca1\u6709\u66b4\u9732\u5230\u4e92\u8054\u7f51\u4e0a\u53bb.\u4f46\u662f\u4f60\u7684\u524d\u7aef\u90e8\u7f72\u5728\u4e92\u8054\u7f51\u670d\u52a1\u5668\u5f53\u4e2d.\u6240\u4ee5\u8981\u628a\u4f60\u7684\u672c\u673a\u8981\u6709\u516c\u7f51 IP.\u4e0d\u7136\u65e0\u6cd5\u8bbf\u95ee,\u8fd9\u548c\u4ee3\u7406\u6ca1\u6709\u5173\u7cfb.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214970\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xylophone21 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8de8\u57df\u8de8\u57df\uff0c\u8de8\u7684\u662f\u57df\u540d\uff0c\u7ed3\u679c\u4f60\u628a\u6700\u91cd\u8981\u7684\u57df\u540d\u4fe1\u606f\u9690\u85cf\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214971\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tikazyq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3b\u767e\u5ea6\u4e00\u4e0b\u201c\u8de8\u57df\u7684\u51e0\u79cd\u65b9\u5f0f\u201d\uff0c\u4ee5\u540e\u4e0d\u8981\u518d\u5230 v2 \u4e0a\u505a\u4f38\u624b\u515a\uff0c\u4e0b\u6b21\u770b\u5230\u76f4\u63a5\u62ff                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214972\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tikazyq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f30\u8ba1\u4e3b\u662f\u6307\u4e00\u90e8\u5206\u63a5\u53e3\u8c03\u670d\u52a1\u7aef\uff0c\u4e00\u90e8\u5206\u5f00\u53d1\u7684\u63a5\u53e3\u8c03\u672c\u5730\uff0c\u4f60\u90fd\u6709\u672c\u5730\u63a5\u53e3\u4e86\uff0c\u4e3a\u5565\u4e0d\u76f4\u63a5\u5168\u90e8\u8c03\u672c\u5730                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214973\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : belin520 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528\u4e86 Vue \u7684\u4eba\uff0c\u611f\u89c9\u8fde JavaScript \u662f\u4ec0\u4e48\u90fd\u4e0d\u77e5\u9053\u4e86\uff0c\u5168\u4e16\u754c\u90fd\u53ea\u6709 Vue\uff0c\u53ea\u6709 Vue \u7684\u89e3\u51b3\u529e\u6cd5\u3002<br \/>\u5229\u76ca\u76f8\u5173\uff1a\u6700\u65e9\u4e00\u6279 VueJS \u7528\u6237                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214974\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Saszr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u4e00\u4e0b nginx \u76f8\u5173\u7684\u77e5\u8bc6<br \/>proxy_pass \uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214975\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fumichael <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @belin520 #18 emmmmm\uff0c\u6df1\u6709\u540c\u611f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214976\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : richzhu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u771f\u5fc3\u611f\u89c9 \u8de8\u57df\u5e94\u8be5\u8981\u540e\u7aef\u6765\u89e3\u51b3\uff0c\u800c\u4e0d\u662f\u524d\u7aef\u548c\u8fd0\u7ef4                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214977\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : angryfish <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8ba9\u540e\u7aef\u5141\u8bb8\u8de8\u57df\u8bbf\u95ee                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214978\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sparkinglemon <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7684\u786e\u5e94\u8be5\u540e\u7aef\u89e3\u51b3\uff0c\u5982\u679c\u524d\u7aef\u80fd\u591f\u4e86\u89e3\u8de8\u57df\u7684\u539f\u56e0\u4e5f\u80fd\u52a0\u901f\u6392\u67e5\u907f\u514d\u6d6a\u8d39\u65f6\u95f4                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214979\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : RickyC <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @richzhu \u8bf7\u95ee\u4e00\u4e0b, \u8d1f\u8d23\u642d\u73af\u5883\u7684\u662f\u540e\u7aef\u8fd8\u662f\u8fd0\u7ef4? \u6211\u89c9\u5f97\u5e94\u8be5\u8fd0\u7ef4\u8d1f\u8d23\u642d\u73af\u5883.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214980\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : richzhu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @RickyC \u73af\u5883\u5f53\u7136\u662f\u8fd0\u7ef4\u5440\uff0c\u4e0d\u8fc7\u8de8\u57df\u662f\u5728\u540e\u7aef\u4ee3\u7801\u4e2d\u5b9e\u73b0\u7684\uff0c\u56e0\u4e3a\u6709\u7684\u65f6\u5019\u8fd0\u7ef4\u6765\u8bbe\u7f6e\u8de8\u57df\u4f1a\u5f00\u653e\u6743\u9650\u8fc7\u5927\uff0c\u5c31\u76f8\u5f53\u4e8e\u5e72\u6389\u8de8\u57df\uff0c\u5e76\u4e14\u662f\u6574\u4e2a nginx \u4e2d\u7684\u8bbe\u7f6e\uff0c\u5bfc\u81f4\u6574\u4e2a\u9879\u76ee\u5c31\u771f\u7684\u6ca1\u6709\u8de8\u57df\u9650\u5236\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214981\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Sapp <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @belin520 \u7136\u800c vue3 \u5728\u81ea\u5df1\u9020 api \u7684\u9053\u8def\u4e0a\u8d8a\u8d70\u8d8a\u8fdc\uff0c\u5df2\u7ecf\u5f00\u59cb\u9b54\u6539 js \u4e86\uff08 ref \uff09                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214982\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jiangnan01 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u540e\u8005\u4e5f\u5b58\u5728\u8de8\u57df\u95ee\u9898\uff0c\u518d\u52a0\u4e00\u6761\u4ee3\u7406\u4e0d\u5c31\u5b8c\u4e86\uff1f\u5982\u679c\u540e\u8005\u4e0d\u5b58\u5728\uff0c\u90a3\u4e48\u5728 api \u76ee\u5f55\u4e0b\u8bf7\u6c42\u7684 url \u5934\u4e0d\u4f7f\u7528\u4ee3\u7406\u7684\u90a3\u4e2a\u5934\u5c31\u53ef\u4ee5\u4e86\u3002\u8ba9\u540e\u53f0\u5141\u8bb8\u8de8\u57df\u4e0d\u8bf4\u5b89\u4e0d\u5b89\u5168\u8fd8\u8981\u641e\u51fa\u4e00\u5806\u590d\u6742\u8bf7\u6c42\u7684\u5904\u7406\uff0c\u78b0\u5230\u4e0d\u597d\u5546\u91cf\u7684\u540e\u7aef\u4e3a\u8fd9\u7834\u4e8b\u803d\u8bef\u6478\u9c7c\u65f6\u95f4\u4e0d\u503c\u5f97\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214983\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dswyzx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9119\u4eba\u540e\u7aef,\u5bf9 vue \u4ec5\u9650\u4e8e demo \u5c42\u9762.\u540c\u6837\u7684\u8de8\u57df\u95ee\u9898,\u540e\u7aef\u8bbe\u7f6e\u8de8\u57df\u6210\u529f\u5e76\u624b\u5199 js \u6d4b\u8bd5\u6ca1\u6709\u95ee\u9898.\u4f46 vue \u5bf9\u63a5\u65b9\u8868\u793a\u8fd8\u662f\u6ca1\u529e\u6cd5\u8de8\u57df,\u4ed6\u672c\u5730\u5f00\u53d1\u65f6\u5019\u5728 vue \u91cc\u8bbe\u7f6e\u7684\u672c\u5730\u4ee3\u7406,\u4e0a\u7ebf\u5acc\u914d\u7f6e\u9ebb\u70e6,\u6700\u540e\u89e3\u51b3\u65b9\u6848\u662f\u8fd0\u7ef4\u8bbe\u7f6e nginx \u8f6c\u53d1\u56fa\u5b9a route \u5b9e\u73b0\u8de8\u57df.<br \/>\u4e0d\u61c2\u5c31\u95ee:vue \u4ec0\u4e48\u65f6\u5019\u8de8\u57df\u8fd8\u4e0d\u5982\u539f\u751f javescript \u7684\u597d\u4f7f\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214984\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : securityCoding <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             nginx proxy                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214985\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dswyzx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dswyzx \u54c8\u54c8,\u5ff5\u4f5c \u52a0\u5c4b\u4e1d\u5757\u666e\u7279,\u600e\u4e48\u5199\u4f5c javascript \u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214986\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : iseki <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u61c2\u5c31\u95ee\uff1a\u8de8\u57df\u4e3a\u4ec0\u4e48\u4f1a\u548c Vue \u626f\u4e0a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214987\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jiangnan01 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dswyzx \u751f\u4ea7\u73af\u5883\u914d\u4ee3\u7406\u4e0d\u5728 nginx \u914d\u5728\u54ea\u914d\u554a\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214988\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Keyes <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e4b\u524d\u662f\u8fd9\u6837\u505a\u7684\uff0c\u56e0\u4e3a\u8981\u53d6\u4e00\u4e2a\u672c\u5730\u7684\u771f\u5b9e\u8def\u5f84\u5b58\u5230\u4e91\u7aef<br \/>https:\/\/cloud.example.com A \u8bb0\u5f55 -&gt; \u4e91\u7aef<br \/>https:\/\/local.example.com A \u8bb0\u5f55 -&gt; 127.0.0.1<\/p>\n<p>\u81f3\u4e8e\u672c\u673a\u7684 https \u95ee\u9898\uff0c\u88c5 Client \u65f6\u5019\u76f4\u63a5\u7ed9\u7cfb\u7edf\u4e0a\u4e86\u4e00\u4e2a\u81ea\u7b7e\u8bc1\u4e66\uff0c\u6b65\u9aa4\u5927\u6982\u662f\uff1a<br \/>1 \u3001\u751f\u6210\u4e00\u4e2a ROOT CA \uff08\u81ea\u7b7e\uff09<br \/>2 \u3001ROOT CA \u7b7e\u4e00\u4e2a\u670d\u52a1\u5668\u8bc1\u4e66(CA=False, cn=local.example.com)<br \/>3 \u3001\u5220\u6389 ROOT CA \u7684\u79c1\u94a5\uff08\u5b89\u5168 tips\uff0c\u9632\u6b62\u88ab\u5229\u7528\uff09                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214989\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dswyzx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @jiangnan01 \u4f5c\u4e3a\u524d\u7aef\u7ad9\u70b9,\u540e\u7aef\u4e0d\u540c\u57df\u540d\u7684\u4e0d\u540c\u670d\u52a1\u76f4\u63a5\u8c03\u7528\u5457. \u6bd4\u5982 client \u76f4\u63a5\u8c03\u7528 server1,server2. \u8d70 ng \u8f6c\u53d1\u5c82\u4e0d\u76f8\u5f53\u4e8e client \u8c03\u7528 server1 \u7136\u540e\u5206\u53d1\u5230 server2.<br \/>\u6211\u53ea\u662f\u7eb3\u95f7 vue \u6bd4 js \u6709\u4ec0\u4e48\u7279\u6b8a\u4e4b\u5904\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214990\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : myCupOfTea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528 nginx \u4ee3\u7406\u8d70\u4e0d\u5c31\u53f7\u4e86\u4e48                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214991\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DOLLOR <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @iseki <br \/>\u60f3\u8d77\u6765\uff0c\u5341\u5e74\u524d\u4e5f\u662f\u201c\u600e\u4e48\u7528 jquery \u6253\u5f00\u65b0\u7a97\u53e3\u201d\u3001\u201c\u600e\u4e48\u7528 jquery \u62fc\u63a5\u5b57\u7b26\u4e32\u201d\u3001\u201c\u600e\u4e48\u7528 jquery \u6253\u5370\u63a7\u5236\u53f0\u201d\u2026\u2026\u5404\u79cd\u201c\u4e07\u80fd\u201d\u7684 jquery \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214992\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jiangnan01 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dswyzx \u90a3\u4f60\u8fd9\u4e0d\u8fd8\u662f\u540e\u7aef\u89e3\u51b3\u8de8\u57df\u561b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214993\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : RickyC <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @jiangnan01 \u524d\u7aef\u6709\u529e\u6cd5\u89e3\u51b3\u8de8\u57df\u5417? \u6ca1\u6709\u5427.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4214994\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jiangnan01 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @RickyC \u662f\u6ca1\u6709\u554a\uff0c\u6211\u7684\u610f\u601d\u662f\u60f3\u8bf4\u201cvue \u4ec0\u4e48\u65f6\u5019\u8de8\u57df\u8fd8\u4e0d\u5982\u539f\u751f javescript \u7684\u597d\u4f7f\u4e86\u201d\uff0c\u96be\u9053\u539f\u751f JS \u53ef\u4ee5\u8de8\u57df\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Vue \u6b63\u5f0f\u73af\u5883\u8de8\u57df\u95ee\u9898\uff0c\u8c03\u7528\u7684\u4e91&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/194569"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=194569"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/194569\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=194569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=194569"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=194569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}