{"id":1785,"date":"2023-09-19T23:25:18","date_gmt":"2023-09-19T15:25:18","guid":{"rendered":"https:\/\/white-night.club\/?p=1785"},"modified":"2023-11-09T11:07:53","modified_gmt":"2023-11-09T03:07:53","slug":"appdev10","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/09\/19\/appdev10\/","title":{"rendered":"\u672c\u5730\u6d4b\u8bd5\/\u7ebf\u4e0a\u90e8\u7f72\u5bf9Vue\u5e94\u7528\u7684\u8def\u5f84\u5f71\u54cd"},"content":{"rendered":"\n<p>\u533a\u522b\u4e8e\u672c\u5730\u6d4b\u8bd5\u73af\u5883\uff0c\u8def\u5f84\u524d\u9762\u52a0&#8217;\/&#8217;\u548c\u4e0d\u52a0&#8217;\/&#8217;\u7684\u533a\u522b\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>index.html<\/p>\n<cite><em>Vue\u5e94\u7528\u7684\u5165\u53e3\u6587\u4ef6<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u5982\u679c\u4e4b\u524d\u6709\u5efa\u8fc7\u7f51\u7ad9\u7684\u8bdd\u5e94\u8be5\u6bd4\u8f83\u719f\u6089\u5b83\u4e86\u3002\u8fd9\u6587\u4ef6\u5728\u672c\u5730\u6d4b\u8bd5\u7684\u65f6\u5019\u5f88\u96be\u60f3\u5230\u4e3a\u4ec0\u4e48\u8981\u6709\u8fd9\u4e48\u4e2a\u6587\u4ef6\uff0c\u4f46\u53ea\u8981\u4f60\u7684\u7f51\u7ad9\u642d\u8f7d\u5230apache\/nginx\u4e14\u4e0a\u7ebf\u540e\uff0c\u4f60\u5c31\u77e5\u9053\u4e3a\u4ec0\u4e48\u8981\u6709\u8fd9\u4e48\u4e2a\u6587\u4ef6\u4e86\u3002<\/p>\n\n\n\n<p>\u5047\u8bbe\u4f60\u7684\u57df\u540d\u4e3ahttps:\/\/your-website\u3002\u4e4b\u524d\u4ecb\u7ecdURL\u7684\u65f6\u5019\u63d0\u5230\u8fc7\uff0c\u201c<em>your-website<\/em>\u201c\u662f\u4e3b\u673a\u540d\uff0c\u5b83\u5bf9\u5e94\u7684\u662f\u4f60\u670d\u52a1\u5668\u4e0b\u7684&#8221;<em>\/var\/www\/html\/<\/em>&#8220;\u8fd9\u4e2a\u8def\u5f84\u3002<\/p>\n\n\n\n<p>\u800cindex.html\u5c31\u76f8\u5f53\u4e8e\u4e00\u4e2a\u201d<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\"><strong>\u5165\u53e3<\/strong><\/mark>\u201c\u3002\u5f53\u7528\u6237\u5728\u8bbf\u95ee&#8221;<em>https:\/\/your-website<\/em>&#8220;\u65f6\uff0c\u5c31\u4f1a\u67e5\u627ehtml\u8fd9\u4e2a\u76ee\u5f55\uff0c\u53d1\u73b0\u6709index.html\u5c31\u4f1a\u52a0\u8f7d\u8be5html\u6587\u6863\u3002\u5982\u679c\u4f60\u7684index.html\u653e\u5728&#8221;\/var\/www\/html\/main&#8221;\u6587\u4ef6\u5939\uff0c\u90a3\u4e48\u5728\u8bbf\u95ee&#8221;<em>https:\/\/your-website\/main<\/em>\u201d\u65f6\u5c31\u4f1a\u641c\u7d22main\u6587\u4ef6\u5939\uff0c\u5982\u679c\u6709index.html\u5c31\u4f1a\u52a0\u8f7d\u8be5html\u6587\u6863\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\u9664\u4e86index.html\u4e4b\u5916\u8fd8\u6709index.php\uff0c\u6bd5\u7adf\u672c\u7f51\u7ad9\u7528\u7684\u5c31\u662findex.php\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u51c6\u5907\u4e00\u53f0\u4e91\u670d\u52a1\u5668<\/p>\n<cite><em>\u533a\u522b\u4e8elocalhost<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u5982\u679c\u4f60\u901a\u8fc7Vite\u521b\u5efa\u4e86\u4e00\u4e2avue\u5e94\u7528\uff0c\u5e76\u4e0d\u4f5c\u7136\u540e\u5176\u4ed6\u64cd\u4f5c\uff0c\u76f4\u63a5\u70b9\u51fbindex.html\uff0c\u4f60\u5927\u6982\u7387\u4f1a\u5f97\u5230\u4e00\u4e2a\u201c\u7a7a\u767d\u201d\u7684\u9875\u9762\u3002\u6b64\u65f6\u6309\u4e0bf12\uff0c\u4f60\u8fd8\u4f1a\u770b\u5230\u51e0\u6761\u62a5\u9519\u4fe1\u606f&#8211;\u8fd9\u70b9\u6211\u4eec\u540e\u9762\u518d\u89e3\u91ca\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"527\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/af3f2875efcb76af5877c81b2ce0dea-1024x527.png\" alt=\"\" class=\"wp-image-1790\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/af3f2875efcb76af5877c81b2ce0dea-1024x527.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/af3f2875efcb76af5877c81b2ce0dea-300x154.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/af3f2875efcb76af5877c81b2ce0dea-768x395.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/af3f2875efcb76af5877c81b2ce0dea-1536x791.png 1536w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/af3f2875efcb76af5877c81b2ce0dea.png 1906w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-background-color\">\u7a7a\u767d\u9875<\/mark><\/em><\/figcaption><\/figure>\n\n\n\n<p>\u4f46\u4f60\u5982\u679c\u5728\u201cnpm run dev\u201d\u4e4b\u540e\u518d\u901a\u8fc7&#8221;localhost:5173&#8243;\uff08\u5047\u8bbe\u5f00\u653e\u7684\u662f5173\u7aef\u53e3\uff09\u53bb\u8bbf\u95ee\uff0c\u4f60\u4f1a\u5f97\u5230\u771f\u6b63\u7684Vue\u5e94\u7528\u7684\u521d\u59cb\u754c\u9762\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"477\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/e205d06d376699ff852a9614cf85dca-1024x477.png\" alt=\"\" class=\"wp-image-1791\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/e205d06d376699ff852a9614cf85dca-1024x477.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/e205d06d376699ff852a9614cf85dca-300x140.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/e205d06d376699ff852a9614cf85dca-768x358.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/e205d06d376699ff852a9614cf85dca-1536x716.png 1536w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/e205d06d376699ff852a9614cf85dca.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-background-color\"><em>\u6b63\u5e38\u8fd0\u884c\u7684Vue\u521d\u59cb\u9875\u9762<\/em><\/mark><\/figcaption><\/figure>\n\n\n\n<p>\u5047\u8bbe\u4f60\u901a\u8fc7&#8221;npm run build&#8221;\u5c06vue\u6253\u5305\u5e76\u51c6\u5907\u90e8\u7f72\u5230\u670d\u52a1\u5668\u4e0a\u3002\u5982\u679c\u4f60\u6070\u597d\u548c\u6211\u4e00\u6837\u6709\u4e00\u53f0\u670d\u52a1\u5668\uff0c\u53c8\u6070\u597d\u548c\u6211\u4e00\u6837\u5728\u6b64\u4e4b\u524d\u5df2\u7ecf\u90e8\u7f72\u8fc7\u4e86\u4e00\u4e2a\u7f51\u7ad9\uff1b\u53c8\u6070\u597d\u548c\u6211\u4e00\u6837\uff1a\u4e3a\u4e86\u5c06\u65b0\u7f51\u7ad9\u548c\u65e7\u7f51\u7ad9\u8fdb\u884c\u533a\u5206\u7ba1\u7406\uff0c\u5728\/var\/www\/html\u8def\u5f84\u4e0b\u65b0\u5efa\u4e86\u4e2a\u6587\u4ef6\u5939\uff08\u5047\u8bbe\u6587\u4ef6\u5939\u540d\u4e3aweb2\uff09\u653e\u4f60\u521a\u521a\u65b0\u5efa\u7684Vue\u5e94\u7528\u3002\u4f60\u4f1a\u53d1\u73b0<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">\u901a\u8fc7<em>\u201dhttp:\/\/\u4f60\u7684\u57df\u540d<\/em>\u201c\u80fd\u6b63\u5e38\u8bbf\u95ee\u4f60\u4e4b\u524d\u7684\u7f51\u7ad9<\/mark>\u3002\u4f46\u662f<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\"><em>\u201dhttp:\/\/\u4f60\u7684\u57df\u540d\/web1<\/em>\u201c\u52a0\u8f7d\u7684\u4ecd\u7136\u662f\u4e2a\u7a7a\u767d\u9875\u9762<\/mark>\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"477\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/727cac46dd292aaa2a7dcdcac61afbe-1024x477.png\" alt=\"\" class=\"wp-image-1803\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/727cac46dd292aaa2a7dcdcac61afbe-1024x477.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/727cac46dd292aaa2a7dcdcac61afbe-300x140.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/727cac46dd292aaa2a7dcdcac61afbe-768x358.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/727cac46dd292aaa2a7dcdcac61afbe-1536x716.png 1536w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/727cac46dd292aaa2a7dcdcac61afbe.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote has-vivid-cyan-blue-color has-text-color\">\n<p>\u5199\u8005\u6ce8<\/p>\n<cite>\u8fd9\u91cc\u6211\u5f3a\u70c8\u5efa\u8bae\u81ea\u5df1\u53bb\u670d\u52a1\u5668\u4e0a\u8bd5\u4e00\u4e0b\uff0c\u4f53\u9a8c\u8fc7\u8fd9\u70b9\u4e4b\u540e\u5370\u8c61\u771f\u7684\u4f1a\u5f88\u6df1\u523b\u3002\uff08\u6bd5\u7adf\u8fd9\u4e2a\u95ee\u9898\u592a\u5751\u4eba\u4e86\uff09<\/cite><\/blockquote>\n\n\n\n<p>\u56fe\u4e00\u7684\u62a5\u9519\u539f\u56e0\u662f\u201c\u6d4f\u89c8\u5668\u7684\u540c\u6e90\u7b56\u7565\u201d\uff0c\u800c\u56fe\u4e09\u7684\u62a5\u9519\u539f\u56e0\u5219\u662f\u201c\u8def\u5f84\u9519\u8bef\u201d\u3002\u6211\u4eec\u5148\u6765\u4ecb\u7ecd\u4e00\u4e0b\u540c\u6e90\u7b56\u7565\u3002<\/p>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u540c\u6e90\u7b56\u7565<\/p>\n<cite><em>\u9650\u5236JavaScript\u7684\u8de8\u7ad9\u70b9\u8c03\u7528<\/em><\/cite><\/blockquote>\n\n\n\n<p><s>\u4f60\u8bf4\u5f97\u5bf9\uff0c\u4f46\u662f\u6e90&#8230;<\/s><\/p>\n\n\n\n<p>\u5bf9\u4e8e\u521a\u521b\u5efa\u7684\u9ed8\u8ba4Vue\u5e94\u7528\u5728\u8bbf\u95eeindex.html\u65f6\u8fd8\u4f1a\u53bb\u8c03\u7528src\u6587\u4ef6\u5939\u4e0b\u7684main.js\u6587\u4ef6\u3002\u5bf9\u4e8e\u751f\u4ea7\u7248\u672c\uff08dist\u6587\u4ef6\u5939\u4e0b\uff09\u7684vue\u5e94\u7528\u6765\u8bf4\uff0c\u5b83\u4f1a\u8c03\u7528asset\u6587\u4ef6\u5939\u4e0b\u7684index\u6587\u4ef6\u3002<\/p>\n\n\n\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u53ea\u6709\u4e24\u4e2a\u6587\u4ef6\u7684URL\u7684\u534f\u8bae\uff08http\/https)\uff0c\u7aef\u53e3\uff0880\uff0c22\uff0c8080&#8230;\uff09\uff0c\u4e3b\u673a\u540d\u90fd\u76f8\u540c\u65f6\uff0c\u624d\u80fd\u4e0d\u53d7\u540c\u6e90\u7b56\u7565\u7684\u9650\u5236\u76f8\u4e92\u901a\u4fe1\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\uff0c\u4e5f\u6709\u4e0d\u53d7\u540c\u6e90\u7b56\u7565\u9650\u5236\u7684\uff0c\u6bd4\u5982\u91cd\u5b9a\u5411\u6216\u8005\u9875\u9762\u4e2d\u7684\u94fe\u63a5\u3002\u4e5f\u6709\u7ed5\u8fc7\u540c\u6e90\u7b56\u7565\u7684\u65b9\u6cd5\uff0c\u4ee5\u540e\u78b0\u5230\u518d\u505a\u8bb0\u5f55\u4e86\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\u4e0a\u9762\u5bf9\u5e94\u7684\u662f\u901a\u8fc7http\u534f\u8bae\u53bb\u8bbf\u95ee\u4f60\u7684Vue\u5e94\u7528\u3002\u6211\u4eec\u518d\u56de\u6765\u770b\u4e0a\u9762\u7684\u56fe\u4e00<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"527\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/af3f2875efcb76af5877c81b2ce0dea-1024x527.png\" alt=\"\" class=\"wp-image-1790\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/af3f2875efcb76af5877c81b2ce0dea-1024x527.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/af3f2875efcb76af5877c81b2ce0dea-300x154.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/af3f2875efcb76af5877c81b2ce0dea-768x395.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/af3f2875efcb76af5877c81b2ce0dea-1536x791.png 1536w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/af3f2875efcb76af5877c81b2ce0dea.png 1906w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4ed4\u7ec6\u4e00\u770b\uff0cscript\u7684\u8def\u5f84\u662f\u672c\u5730\u8ba1\u7b97\u673aE\u76d8\u7684\u8def\u5f84\u3002\u800c\u540c\u6e90\u7b56\u7565\u5728<a href=\"https:\/\/www.mozilla.org\/en-US\/security\/advisories\/mfsa2019-21\/#CVE-2019-11730\" data-type=\"URL\" data-id=\"https:\/\/www.mozilla.org\/en-US\/security\/advisories\/mfsa2019-21\/#CVE-2019-11730\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#0086ff\" class=\"has-inline-color\">CVE-2019-11730<\/mark><\/a>\u540e\uff0c<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">\u5c06\u6240\u6709\u672c\u5730\u8ba1\u7b97\u673a\u7684\u6587\u4ef6\u90fd\u9ed8\u8ba4\u89c6\u4e3a\u201c\u4e0d\u540c\u6e90\u201d\u7684<\/mark>\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\u642d\u5efa\u4e00\u4e2a\u672c\u5730\u670d\u52a1\u5668\uff08npm run dev\uff09\u5c31\u80fd\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u8fd9\u6837\u6240\u6709\u7684\u6587\u4ef6\u90fd\u6765\u81ealocalhost:port\uff0c\u6709\u7740\u76f8\u540c\u7684\u6e90\uff0c\u90a3\u81ea\u7136\u4e0d\u4f1a\u89e6\u53d1CORS\u9519\u8bef\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-vivid-cyan-blue-color has-text-color\">\n<p>\u5199\u8005\u6ce8<\/p>\n<cite><strong>CORS<\/strong>\uff1aCross-Origin Resource Sharing\uff0c\u5373\u8de8\u6e90\u8d44\u6e90\u5171\u4eab\u662f\u4e00\u4e2a\u7cfb\u7edf\uff0c\u5b83\u7531\u4e00\u7cfb\u5217\u4f20\u8f93\u7684HTTP\u6807\u5934\u7ec4\u6210\uff0c\u8fd9\u4e9b HTTP \u6807\u5934\u51b3\u5b9a\u6d4f\u89c8\u5668\u662f\u5426\u963b\u6b62\u524d\u7aef JavaScript \u4ee3\u7801\u83b7\u53d6\u8de8\u6e90\u8bf7\u6c42\u7684\u54cd\u5e94\u3002<\/cite><\/blockquote>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u8def\u5f84\u524d\u9762\u5e26&#8217;\/&#8217;\u548c\u4e0d\u5e26&#8217;\/&#8217;<\/p>\n<cite><em>\u6839\u76ee\u5f55\u8bbf\u95ee<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u8fd9\u4e2a\u95ee\u9898\u5f88\u5751\u3002<\/p>\n\n\n\n<p>\u5047\u8bbe\u4f60\u7684index.html\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n  &lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;link rel=\"icon\" href=\"<mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff2f\" class=\"has-inline-color\">\/favicon.ico<\/mark>\"&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\n    &lt;title&gt;SaveHub&lt;\/title&gt;\n    &lt;script type=\"module\" crossorigin src=\"<mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff2f\" class=\"has-inline-color\">\/assets\/index-0ded4fc5.js<\/mark>\"&gt;&lt;\/script&gt;\n    &lt;link rel=\"stylesheet\" href=\"<mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff2f\" class=\"has-inline-color\">\/assets\/index-ef4f98ff.css<\/mark>\"&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;div id=\"app\"&gt;&lt;\/div&gt;\n    \n  &lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u4f60\u53c8\u6070\u597d\u548c\u6211\u4e00\u6837\uff0c\u628a\u8fd9\u4e2aindex.html\u6254\u8fdb\u4e86&#8221;\/var\/www\/html\/SaveHub&#8221;\u6587\u4ef6\u5939\uff0c\u90a3\u4e48\u4f60\u4f1a\u548c\u6211\u4e00\u6837\u5f97\u5230\u4e00\u4e2a\u7a7a\u767d\u9875\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"477\" src=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/727cac46dd292aaa2a7dcdcac61afbe-1024x477.png\" alt=\"\" class=\"wp-image-1803\" style=\"border-style:none;border-width:0px;border-radius:0px\" srcset=\"https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/727cac46dd292aaa2a7dcdcac61afbe-1024x477.png 1024w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/727cac46dd292aaa2a7dcdcac61afbe-300x140.png 300w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/727cac46dd292aaa2a7dcdcac61afbe-768x358.png 768w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/727cac46dd292aaa2a7dcdcac61afbe-1536x716.png 1536w, https:\/\/white-night.club\/wp-content\/uploads\/2023\/09\/727cac46dd292aaa2a7dcdcac61afbe.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u6765\u770b\u4e24\u4e2a\u94fe\u63a5\u3002\u4e00\u4e2a\u524d\u9762\u5e26\u6760\uff0c\u4e00\u4e2a\u4e0d\u5e26\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>assets\/index.js\n<mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff2f\" class=\"has-inline-color\">\/<\/mark>assets\/index.js<\/code><\/pre>\n\n\n\n<p>\u524d\u8005\u5f88\u660e\u663e\uff0c\u4ee3\u8868\u7684\u5c31\u662f\u201c\u5728assets\u6587\u4ef6\u5939\u4e0b\u6709\u4e2aindex.js\u6587\u4ef6&#8221;\u3002\u76f8\u4fe1\u8fd9\u4e2a\u7406\u89e3\u8d77\u6765\u8fd8\u662f\u6ca1\u5565\u95ee\u9898\u7684\u3002\u800c\u7b2c\u4e8c\u6761\u94fe\u63a5\u524d\u9762\u7684&#8217;\/&#8217;\u4ee3\u8868\u7684\u5219\u662f<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">\u6839\u76ee\u5f55<\/mark>\u3002\u5728\u672c\u6587\u7ae0\u4e2d\u8fd9\u4e2a\u6839\u76ee\u5f55\u6307\u7684\u5c31\u662f\/var\/www\/html\uff0c\u8868\u793a\u7684\u662f\u201d<mark style=\"background-color:rgba(0, 0, 0, 0);color:#fcb900\" class=\"has-inline-color\">\u5728html\u6587\u4ef6\u5939\u4e0b\u6709\u4e00\u4e2aassets\u6587\u4ef6\u5939<\/mark>\uff0cassets\u6587\u4ef6\u5939\u5185\u6709\u4e2aindex.js\u6587\u4ef6\u201c\u3002<\/p>\n\n\n\n<p>\u4e24\u8005\u7684\u533a\u522b\u5f88\u660e\u663e\u4e86\uff0c\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u4e5f\u6709\u5f88\u591a\u79cd\u65b9\u6cd5\u3002\u6bd4\u5982\u6211\u662f\u7ed9\u94fe\u63a5\u524d\u52a0\u4e0a\u4e86\u4e00\u4e2aSaveHub\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n  &lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;link rel=\"icon\" href=\"<mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff2f\" class=\"has-inline-color\">\/SaveHub\/<\/mark>favicon.ico\"&gt;\n    &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"&gt;\n    &lt;title&gt;SaveHub&lt;\/title&gt;\n    &lt;script type=\"module\" crossorigin src=\"<mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff2f\" class=\"has-inline-color\">\/SaveHub\/<\/mark>assets\/index-0ded4fc5.js\"&gt;&lt;\/script&gt;\n    &lt;link rel=\"stylesheet\" href=\"<mark style=\"background-color:rgba(0, 0, 0, 0);color:#00ff2f\" class=\"has-inline-color\">\/SaveHub\/<\/mark>assets\/index-ef4f98ff.css\"&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;div id=\"app\"&gt;&lt;\/div&gt;\n    \n  &lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote has-vivid-cyan-blue-color has-text-color\">\n<p>\u5199\u8005\u6ce8<\/p>\n<cite>\u8fd9\u5c5e\u4e8e\u662f\u90a3\u79cd\u5f88\u96be\u88ab\u53d1\u73b0\uff0c\u4f46\u4e00\u770b\u5c31\u61c2\u7684\u95ee\u9898\u4e86\u3002\u4e5f\u5b9e\u5728\u662f\u4e0d\u60f3\u505a\u592a\u591a\u89e3\u91ca\u3002\u4e0d\u8fc7\u6700\u611f\u6168\u7684\u662f\u672c\u5730\u6d4b\u8bd5\u7684\u65f6\u5019\u7531\u4e8e\u90fd\u662flocalhost\uff0c\u5f88\u96be\u53d1\u73b0\u8fd9\u95ee\u9898\u3002\u4e00\u653e\u5230\u670d\u52a1\u5668\u4e0a\u5c31\u5f00\u59cb404\u3002\u6240\u4ee5\u8fd8\u662f\u6709\u4e2a\u6d4b\u8bd5\u7528\u7684\u670d\u52a1\u5668\u6bd4\u8f83\u597d\u554a\u3002<\/cite><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Vue\u5e94\u7528\u90e8\u7f72\u5230\u670d\u52a1\u5668\u540e\u4e3a\u201c\u7a7a\u767d\u9875\u201d\u7684\u89e3\u51b3\u65b9\u6cd5<\/p>\n","protected":false},"author":1,"featured_media":1790,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[72,51],"tags":[73,54],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/1785"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=1785"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/1785\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/1790"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=1785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=1785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=1785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}