{"id":38805,"date":"2025-05-21T10:35:43","date_gmt":"2025-05-21T02:35:43","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/38805.html"},"modified":"2025-05-21T10:35:43","modified_gmt":"2025-05-21T02:35:43","slug":"%e4%ba%8c%e3%80%81%e3%80%90%e7%8e%af%e5%a2%83%e6%90%ad%e5%bb%ba%e7%af%87%e3%80%91%ef%bc%9adjango-%e5%92%8c-vue3-%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%e5%87%86%e5%a4%87","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/38805.html","title":{"rendered":"\u4e8c\u3001\u3010\u73af\u5883\u642d\u5efa\u7bc7\u3011\uff1aDjango \u548c Vue3 \u5f00\u53d1\u73af\u5883\u51c6\u5907"},"content":{"rendered":"<\/p>\n<h4>\u3010\u73af\u5883\u642d\u5efa\u7bc7\u3011&#xff1a;Django \u548c Vue3 \u5f00\u53d1\u73af\u5883\u51c6\u5907<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>\n<ul>\n<li>\u4e3a\u4ec0\u4e48\u6211\u4eec\u9700\u8981\u7279\u5b9a\u7684\u5f00\u53d1\u73af\u5883&#xff1f;<\/li>\n<li>\u51c6\u5907\u5de5\u4f5c<\/li>\n<li>\u7b2c\u4e00\u6b65&#xff1a;\u642d\u5efa\u540e\u7aef\u5f00\u53d1\u73af\u5883 (Python, Django, DRF)<\/li>\n<li>\n<ul>\n<li>1. \u5b89\u88c5 Python<\/li>\n<li>2. \u521b\u5efa\u548c\u6fc0\u6d3b Python \u865a\u62df\u73af\u5883<\/li>\n<li>3. \u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5 Django \u548c DRF<\/li>\n<\/ul>\n<\/li>\n<li>\u7b2c\u4e8c\u6b65&#xff1a;\u642d\u5efa\u524d\u7aef\u5f00\u53d1\u73af\u5883 (Node.js, Vue3, Vite)<\/li>\n<li>\n<ul>\n<li>1. \u5b89\u88c5 Node.js<\/li>\n<li>2. \u521b\u5efa Vue3 \u9879\u76ee<\/li>\n<li>3. \u8fdb\u5165\u524d\u7aef\u9879\u76ee\u5e76\u5b89\u88c5\u4f9d\u8d56<\/li>\n<li>4. \u542f\u52a8\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u5668 (\u9a8c\u8bc1)<\/li>\n<\/ul>\n<\/li>\n<li>\u9879\u76ee\u76ee\u5f55\u7ed3\u6784\u9884\u89c8<\/li>\n<li>\u603b\u7ed3<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u524d\u8a00<\/h3>\n<p>\u6b22\u8fce\u6765\u5230\u300aDjango &#043; Vue3 \u6d4b\u8bd5\u5e73\u53f0\u300b\u5f00\u53d1\u5b9e\u6218\u4e13\u680f&#xff01;\u5728\u4e0a\u4e00\u7bc7\u6587\u7ae0\u4e2d&#xff0c;\u6211\u4eec\u4e00\u8d77\u63a2\u8ba8\u4e86\u4e3a\u4ec0\u4e48\u9009\u62e9 Django \u548c Vue3 \u6765\u6784\u5efa\u6d4b\u8bd5\u5e73\u53f0&#xff0c;\u5e76\u52fe\u52d2\u4e86\u5b83\u7684\u6574\u4f53\u67b6\u6784\u84dd\u56fe\u3002 \u73b0\u5728&#xff0c;\u662f\u65f6\u5019\u64b8\u8d77\u8896\u5b50&#xff0c;\u4e3a\u6211\u4eec\u7684\u9879\u76ee\u51c6\u5907\u597d\u5f00\u53d1\u73af\u5883\u4e86\u3002\u73af\u5883\u642d\u5efa\u5c31\u50cf\u662f\u5efa\u9020\u623f\u5c4b\u524d\u7684\u5730\u57fa\u5de5\u4f5c&#xff0c;\u867d\u7136\u770b\u8d77\u6765\u67af\u71e5&#xff0c;\u4f46\u5374\u662f\u540e\u7eed\u4e00\u5207\u987a\u5229\u8fdb\u884c\u7684\u5173\u952e\u3002<\/p>\n<h4>\u4e3a\u4ec0\u4e48\u6211\u4eec\u9700\u8981\u7279\u5b9a\u7684\u5f00\u53d1\u73af\u5883&#xff1f;<\/h4>\n<p>\u5c31\u50cf\u4e0d\u540c\u7684\u9879\u76ee\u53ef\u80fd\u9700\u8981\u4e0d\u540c\u7684\u5de5\u5177\u7bb1\u4e00\u6837&#xff0c;\u6211\u4eec\u7684 Django \u540e\u7aef\u548c Vue3 \u524d\u7aef\u4e5f\u5404\u81ea\u9700\u8981\u7279\u5b9a\u7684\u8fd0\u884c\u73af\u5883\u548c\u4f9d\u8d56\u5e93\u3002<\/p>\n<ul>\n<li>Python \u73af\u5883 (Django \u540e\u7aef): \u6211\u4eec\u9700\u8981\u5b89\u88c5 Python \u89e3\u91ca\u5668&#xff0c;\u4ee5\u53ca Django \u548c Django REST Framework (DRF) \u8fd9\u4e24\u4e2a\u6846\u67b6\u3002<\/li>\n<li>Node.js \u73af\u5883 (Vue3 \u524d\u7aef): \u6211\u4eec\u9700\u8981\u5b89\u88c5 Node.js \u8fd0\u884c\u65f6&#xff0c;\u4ee5\u53ca Vue3\u3001\u6784\u5efa\u5de5\u5177 (\u5982 Vite) \u548c\u5404\u79cd\u524d\u7aef\u5e93\u3002<\/li>\n<\/ul>\n<p>\u5212\u91cd\u70b9&#xff1a;\u865a\u62df\u73af\u5883\u548c\u5305\u7ba1\u7406\u5668<\/p>\n<p>\u4e3a\u4e86\u907f\u514d\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u7684\u4f9d\u8d56\u51b2\u7a81&#xff0c;\u6216\u8005\u6c61\u67d3\u4f60\u7684\u7cfb\u7edf\u73af\u5883&#xff0c;\u6211\u5f3a\u70c8\u63a8\u8350\u4f7f\u7528&#xff1a;<\/p>\n<li>Python \u865a\u62df\u73af\u5883 (Virtual Environment): \u5b83\u80fd\u4e3a\u4f60\u521b\u5efa\u4e00\u4e2a\u72ec\u7acb\u7684 Python \u8fd0\u884c\u73af\u5883&#xff0c;\u6240\u6709\u5b89\u88c5\u7684\u5e93\u90fd\u53ea\u5728\u8fd9\u4e2a\u73af\u5883\u91cc\u751f\u6548&#xff0c;\u4e0d\u4f1a\u5f71\u54cd\u5230\u7cfb\u7edf\u6216\u5176\u4ed6\u9879\u76ee\u3002\u5c31\u50cf\u4e3a\u6bcf\u4e2a\u9879\u76ee\u914d\u5907\u4e00\u4e2a\u4e13\u5c5e\u5de5\u5177\u7bb1\u3002<\/li>\n<li>Node.js \u5305\u7ba1\u7406\u5668 (npm\/yarn\/pnpm): Node.js \u751f\u6001\u7cfb\u7edf\u5e9e\u5927&#xff0c;\u4f9d\u8d56\u4f17\u591a\u3002\u5305\u7ba1\u7406\u5668\u53ef\u4ee5\u5e2e\u4f60\u65b9\u4fbf\u5730\u5b89\u88c5\u3001\u66f4\u65b0\u3001\u5220\u9664\u524d\u7aef\u9879\u76ee\u6240\u9700\u7684\u5404\u79cd\u5e93&#xff0c;\u5e76\u7ba1\u7406\u5b83\u4eec\u4e4b\u95f4\u7684\u7248\u672c\u5173\u7cfb\u3002<\/li>\n<h4>\u51c6\u5907\u5de5\u4f5c<\/h4>\n<p>\u5728\u5f00\u59cb\u4e4b\u524d&#xff0c;\u8bf7\u786e\u4fdd\u6ee1\u8db3\u4ee5\u4e0b\u6761\u4ef6&#xff1a;<\/p>\n<li>\u7a33\u5b9a\u7684\u7f51\u7edc\u8fde\u63a5&#xff1a; \u9700\u8981\u4e0b\u8f7d\u4e00\u4e9b\u5b89\u88c5\u5305\u3002<\/li>\n<li>\u57fa\u7840\u7684\u7ec8\u7aef\/\u547d\u4ee4\u884c\u64cd\u4f5c\u77e5\u8bc6&#xff1a; \u6211\u4eec\u5927\u90e8\u5206\u64cd\u4f5c\u90fd\u4f1a\u5728\u7ec8\u7aef\u91cc\u5b8c\u6210&#xff0c;\u6211\u4f1a\u63d0\u4f9b\u5177\u4f53\u7684\u547d\u4ee4\u3002<\/li>\n<li>\u4ee3\u7801\u7f16\u8f91\u5668&#xff1a; \u63a8\u8350 VS Code\u3001PyCharm\u3001WebStorm \u7b49&#xff0c;\u5b83\u4eec\u5bf9 Python \u548c JavaScript\/Vue \u7684\u652f\u6301\u90fd\u975e\u5e38\u597d\u3002<\/li>\n<h4>\u7b2c\u4e00\u6b65&#xff1a;\u642d\u5efa\u540e\u7aef\u5f00\u53d1\u73af\u5883 (Python, Django, DRF)<\/h4>\n<p>\u6211\u4eec\u5c06\u4ece\u540e\u7aef\u5f00\u59cb\u3002<\/p>\n<h5>1. \u5b89\u88c5 Python<\/h5>\n<p>Django \u662f\u57fa\u4e8e Python \u7684&#xff0c;\u6240\u4ee5\u9996\u5148\u8981\u5b89\u88c5 Python\u3002\u8bf7\u5b89\u88c5 Python 3.8 \u6216\u66f4\u9ad8\u7248\u672c\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023539-682d3bfb8ddc5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>Windows \u7528\u6237&#xff1a;\n<ul>\n<li>\u8bbf\u95ee Python \u5b98\u65b9\u4e0b\u8f7d\u9875\u9762&#xff1a;https:\/\/www.python.org\/downloads\/<\/li>\n<li>\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684 Windows \u5b89\u88c5\u7a0b\u5e8f&#xff08;exe \u6587\u4ef6&#xff09;\u3002<\/li>\n<li>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f&#xff0c;\u975e\u5e38\u91cd\u8981&#xff1a;\u5728\u5b89\u88c5\u754c\u9762\u7684\u7b2c\u4e00\u6b65&#xff0c;\u52fe\u9009 \u201cAdd Python to PATH\u201d (\u5c06 Python \u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf)\u3002\u7136\u540e\u9009\u62e9\u201cInstall Now\u201d\u8fdb\u884c\u5b89\u88c5\u3002<\/li>\n<li>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26 (CMD) \u3002<\/li>\n<\/ul>\n<\/li>\n<li>macOS \u7528\u6237&#xff1a;\n<ul>\n<li>macOS \u901a\u5e38\u81ea\u5e26 Python&#xff0c;\u4f46\u7248\u672c\u53ef\u80fd\u8f83\u8001\u3002\u63a8\u8350\u4f7f\u7528 Homebrew \u5b89\u88c5\u6700\u65b0\u7248\u672c\u3002<\/li>\n<li>\u5982\u679c\u6ca1\u5b89\u88c5 Homebrew&#xff0c;\u6253\u5f00\u7ec8\u7aef&#xff0c;\u6267\u884c \/bin\/bash -c &#034;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)&#034; \u5b89\u88c5\u3002<\/li>\n<li>\u5b89\u88c5 Homebrew \u540e&#xff0c;\u6267\u884c brew install python \u5b89\u88c5\u6700\u65b0 Python 3\u3002<\/li>\n<li>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u6253\u5f00\u7ec8\u7aef\u3002<\/li>\n<\/ul>\n<\/li>\n<li>Linux \u7528\u6237&#xff1a;\n<ul>\n<li>\u5927\u591a\u6570 Linux \u53d1\u884c\u7248\u90fd\u81ea\u5e26 Python\u3002\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u6700\u65b0\u7248\u672c&#xff1a;\n<ul>\n<li>Debian\/Ubuntu: sudo apt update &amp;&amp; sudo apt install python3 python3-venv<\/li>\n<li>Fedora: sudo dnf install python3 python3-venv<\/li>\n<li>CentOS\/RHEL: sudo yum install python3 python3-venv (\u53ef\u80fd\u9700\u8981 EPEL \u6e90)<\/li>\n<\/ul>\n<\/li>\n<li>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u6253\u5f00\u7ec8\u7aef\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u9a8c\u8bc1\u5b89\u88c5&#xff1a;<\/p>\n<p>\u6253\u5f00\u4f60\u7684\u7ec8\u7aef&#xff08;\u547d\u4ee4\u63d0\u793a\u7b26&#xff09;&#xff0c;\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5e76\u56de\u8f66&#xff1a;<\/p>\n<p>python &#8211;version<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023540-682d3bfc33dfa.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5982\u4e0a\u56fe\u6240\u793a&#xff0c;\u80fd\u770b\u5230 Python \u7684\u7248\u672c\u53f7&#xff0c;\u8bf4\u660e\u5b89\u88c5\u6210\u529f&#xff01;<\/p>\n<h5>2. \u521b\u5efa\u548c\u6fc0\u6d3b Python \u865a\u62df\u73af\u5883<\/h5>\n<p>\u9996\u5148&#xff0c;\u4e3a\u4f60\u6574\u4e2a\u9879\u76ee\u521b\u5efa\u4e00\u4e2a\u6839\u76ee\u5f55\u3002\u6253\u5f00\u7ec8\u7aef&#xff0c;\u5728\u4f60\u7684\u5f00\u53d1\u6587\u4ef6\u5939\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a test-platform \u7684\u6587\u4ef6\u5939\u3002<\/p>\n<p><span class=\"token function\">mkdir<\/span> test-platform<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023540-682d3bfc43a8a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4f7f\u7528 cd \u547d\u4ee4\u8fdb\u5165\u8fd9\u4e2a\u6587\u4ef6\u5939&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> test-platform<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023540-682d3bfc57f7e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u63a5\u4e0b\u6765&#xff0c;\u6253\u5f00\u4ee3\u7801\u7f16\u8f91\u5668&#xff0c;\u521b\u5efa\u865a\u62df\u73af\u5883\u3002<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u4e00\u4e2a\u540d\u4e3a &#039;venv&#039; \u7684\u865a\u62df\u73af\u5883<\/span><br \/>\npython -m venv venv<\/p>\n<p>\u8fd9\u4f1a\u5728 test-platform \u6587\u4ef6\u5939\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a venv \u7684\u5b50\u6587\u4ef6\u5939&#xff0c;\u91cc\u9762\u5305\u542b\u4e86\u72ec\u7acb\u7684 Python \u73af\u5883\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023540-682d3bfc688bd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883&#xff1a;<\/p>\n<p>\u8fd9\u662f\u5173\u952e\u4e00\u6b65&#xff01;\u6bcf\u6b21\u5f00\u59cb\u5728\u8fd9\u4e2a\u9879\u76ee\u5de5\u4f5c\u65f6&#xff0c;\u90fd\u8981\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u3002<\/p>\n<ul>\n<li>macOS \u548c Linux \u7528\u6237&#xff1a;<span class=\"token builtin class-name\">source<\/span> venv\/bin\/activate\n <\/li>\n<li>Windows \u7528\u6237&#xff1a;venv<span class=\"token punctuation\">\\\\<\/span>Scripts<span class=\"token punctuation\">\\\\<\/span>activate\n <\/li>\n<\/ul>\n<p>\u6fc0\u6d3b\u6210\u529f\u540e&#xff0c;\u5728Terminal&#xff0c;\u76ee\u5f55\u524d\u9762\u4f1a\u663e\u793a\u865a\u62df\u73af\u5883\u7684\u540d\u79f0&#xff0c;\u5982\u4e0b\u56fe\u6240\u793a&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023540-682d3bfc7b997.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u9a8c\u8bc1\u865a\u62df\u73af\u5883\u662f\u5426\u6fc0\u6d3b&#xff1a;<\/p>\n<p>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u5f53\u524d\u4f7f\u7528\u7684 Python \u89e3\u91ca\u5668\u8def\u5f84&#xff1a;<\/p>\n<p><span class=\"token comment\"># macOS \/ Linux<\/span><br \/>\n<span class=\"token function\">which<\/span> python<br \/>\n<span class=\"token comment\"># Windows<\/span><br \/>\nwhere python<\/p>\n<p>\u5982\u679c\u8def\u5f84\u6307\u5411\u4f60\u9879\u76ee\u76ee\u5f55\u4e0b\u7684 venv \u6587\u4ef6\u5939\u5185&#xff0c;\u8bf4\u660e\u6fc0\u6d3b\u6210\u529f&#xff01;\u5982\u4e0b\u56fe\u6240\u793a&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023540-682d3bfc8b3e2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8981\u9000\u51fa\u865a\u62df\u73af\u5883&#xff0c;\u53ea\u9700\u8f93\u5165 deactivate \u547d\u4ee4\u5373\u53ef\u3002\u4f46\u5728\u5f00\u53d1\u65f6&#xff0c;\u8bf7\u4fdd\u6301\u865a\u62df\u73af\u5883\u6fc0\u6d3b\u72b6\u6001\u3002<\/p>\n<h5>3. \u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5 Django \u548c DRF<\/h5>\n<p>\u865a\u62df\u73af\u5883\u5df2\u7ecf\u6fc0\u6d3b&#xff0c;\u73b0\u5728\u5b89\u88c5\u9879\u76ee\u6240\u9700\u7684\u5e93\u3002\u4f7f\u7528 pip&#xff08;Python \u7684\u5305\u7ba1\u7406\u5668&#xff0c;\u865a\u62df\u73af\u5883\u6fc0\u6d3b\u540e&#xff0c;\u4f7f\u7528\u7684\u5c31\u662f\u865a\u62df\u73af\u5883\u72ec\u7acb\u7684 pip&#xff09;\u3002<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5 Django<\/span><br \/>\npip <span class=\"token function\">install<\/span> django<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5 Django REST Framework (DRF)<\/span><br \/>\npip <span class=\"token function\">install<\/span> djangorestframework<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023540-682d3bfc9d156.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023540-682d3bfcb1615.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u9a8c\u8bc1\u5b89\u88c5&#xff1a;<\/p>\n<p>\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u865a\u62df\u73af\u5883\u5df2\u5b89\u88c5\u7684\u6240\u6709\u5e93&#xff1a;<\/p>\n<p>pip list<\/p>\n<p>\u4f60\u5e94\u5728\u5217\u8868\u4e2d\u80fd\u770b\u5230 Django \u548c djangorestframework \u4ee5\u53ca\u5b83\u4eec\u7684\u7248\u672c\u53f7\u3002\u5982\u4e0b\u56fe\u6240\u793a&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023540-682d3bfcd82e0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u81f3\u6b64&#xff0c;\u4f60\u7684\u540e\u7aef\u5f00\u53d1\u73af\u5883\u5df2\u7ecf\u51c6\u5907\u5c31\u7eea&#xff01;<\/p>\n<h4>\u7b2c\u4e8c\u6b65&#xff1a;\u642d\u5efa\u524d\u7aef\u5f00\u53d1\u73af\u5883 (Node.js, Vue3, Vite)<\/h4>\n<p>\u63a5\u4e0b\u6765&#xff0c;\u6211\u4eec\u6765\u642d\u5efa\u524d\u7aef\u6240\u9700\u7684\u73af\u5883\u3002<\/p>\n<h5>1. \u5b89\u88c5 Node.js<\/h5>\n<p>Vue3 \u9879\u76ee\u7684\u6784\u5efa\u548c\u8fd0\u884c\u4f9d\u8d56\u4e8e Node.js\u3002\u8bf7\u5b89\u88c5 Node.js \u7684 LTS (\u957f\u671f\u652f\u6301) \u7248\u672c\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023540-682d3bfce7c27.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\u8bbf\u95ee Node.js \u5b98\u65b9\u4e0b\u8f7d\u9875\u9762&#xff1a;https:\/\/nodejs.org\/<\/li>\n<li>\u4e0b\u8f7d\u63a8\u8350\u7684 LTS \u7248\u672c\u5b89\u88c5\u5305&#xff0c;\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u9009\u62e9\u3002<\/li>\n<li>\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f&#xff0c;\u4e00\u8def\u70b9\u51fb\u201cNext\u201d&#xff0c;\u63a5\u53d7\u9ed8\u8ba4\u8bbe\u7f6e\u5373\u53ef\u3002\u5b89\u88c5\u7a0b\u5e8f\u4f1a\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/li>\n<\/ul>\n<p>\u9a8c\u8bc1\u5b89\u88c5&#xff1a;<\/p>\n<p>\u6253\u5f00\u65b0\u7684\u7ec8\u7aef\u7a97\u53e3&#xff08;Node.js \u7684\u73af\u5883\u53d8\u91cf\u53ef\u80fd\u9700\u8981\u65b0\u7684\u7ec8\u7aef\u7a97\u53e3\u624d\u80fd\u751f\u6548&#xff09;&#xff0c;\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5e76\u56de\u8f66&#xff1a;<\/p>\n<p>node -v<br \/>\n<span class=\"token function\">npm<\/span> -v<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023541-682d3bfd844d7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5982\u679c\u80fd\u770b\u5230 Node.js \u548c npm&#xff08;Node.js \u7684\u9ed8\u8ba4\u5305\u7ba1\u7406\u5668&#xff09;\u7684\u7248\u672c\u53f7&#xff0c;\u8bf4\u660e\u5b89\u88c5\u6210\u529f&#xff01;<\/p>\n<ul>\n<li>\u63d0\u793a&#xff1a; \u9664\u4e86 npm&#xff0c;\u4f60\u4e5f\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528 yarn \u6216 pnpm \u4f5c\u4e3a\u5305\u7ba1\u7406\u5668&#xff0c;\u5b83\u4eec\u5404\u6709\u4f18\u52a3&#xff0c;\u4f46\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4&#xff0c;\u4f7f\u7528 npm \u5c31\u8db3\u591f\u4e86\u3002<\/li>\n<\/ul>\n<h5>2. \u521b\u5efa Vue3 \u9879\u76ee<\/h5>\n<p>Node.js \u5b89\u88c5\u597d\u540e&#xff0c;\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 Vue \u5b98\u65b9\u63a8\u8350\u7684\u73b0\u4ee3\u6784\u5efa\u5de5\u5177 Vite \u6765\u5feb\u901f\u521b\u5efa Vue3 \u9879\u76ee\u3002<\/p>\n<p>\u56de\u5230\u4f60\u7684\u9879\u76ee\u6839\u76ee\u5f55 test-platform\u3002\u6211\u4eec\u5c06\u5728\u91cc\u9762\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u5939\u6765\u5b58\u653e\u524d\u7aef\u4ee3\u7801&#xff0c;\u6bd4\u5982\u53eb\u505a frontend\u3002<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> test-platform <span class=\"token comment\"># \u786e\u4fdd\u4f60\u5728\u9879\u76ee\u6839\u76ee\u5f55<\/span><\/p>\n<p>\u73b0\u5728&#xff0c;\u8fd0\u884c\u521b\u5efa Vue \u9879\u76ee\u7684\u547d\u4ee4&#xff1a;<\/p>\n<p><span class=\"token function\">npm<\/span> create vue&#064;latest<\/p>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u542f\u52a8\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684\u5411\u5bfc&#xff0c;\u5e2e\u4f60\u914d\u7f6e\u65b0\u9879\u76ee\u3002\u6309\u7167\u63d0\u793a\u6765&#xff1a;<\/p>\n<ul>\n<li>\u8f93\u5165\u4f60\u7684\u524d\u7aef\u9879\u76ee\u540d\u79f0&#xff1a; frontend\u3002<\/li>\n<li>Add TypeScript? (Yes)\u3002<\/li>\n<li>Add JSX Support? (No)&#xff0c;Vue \u5355\u6587\u4ef6\u7ec4\u4ef6&#xff08;SFC&#xff09;\u8db3\u591f\u8986\u76d6\u5927\u90e8\u5206\u573a\u666f\u3002<\/li>\n<li>Add Vue Router for Single Page Application development?(Yes)&#xff0c;\u540e\u7eed\u6211\u4eec\u4f1a\u7528\u5230\u8def\u7531\u3002<\/li>\n<li>Add Pinia for State Management? (Yes)&#xff0c;Pinia \u662f Vue3 \u63a8\u8350\u7684\u72b6\u6001\u7ba1\u7406\u5e93\u3002<\/li>\n<li>Add Vitest for Unit Testing? (No)&#xff0c;\u5355\u5143\u6d4b\u8bd5\u53ef\u4ee5\u540e\u7eed\u518d\u5b66\u3002<\/li>\n<li>Add Cypress for End-to-End Testing? (No)&#xff0c;E2E \u6d4b\u8bd5\u4e5f\u53ef\u4ee5\u540e\u7eed\u518d\u5b66\u3002<\/li>\n<li>Add ESLint for Code Linting? (Yes)&#xff0c;\u5e2e\u52a9\u89c4\u8303\u4ee3\u7801\u3002<\/li>\n<li>Add Prettier for Code Formatting? (Yes)&#xff0c;\u5e2e\u52a9\u683c\u5f0f\u5316\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023541-682d3bfd94c0d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5411\u5bfc\u5b8c\u6210\u540e&#xff0c;\u5b83\u4f1a\u63d0\u793a\u4f60\u5728\u54ea\u4e2a\u6587\u4ef6\u5939\u4e0b\u521b\u5efa\u4e86\u9879\u76ee&#xff0c;\u4ee5\u53ca\u63a5\u4e0b\u6765\u7684\u6b65\u9aa4\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023541-682d3bfda8122.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>3. \u8fdb\u5165\u524d\u7aef\u9879\u76ee\u5e76\u5b89\u88c5\u4f9d\u8d56<\/h5>\n<p>\u6839\u636e\u5411\u5bfc\u7684\u63d0\u793a&#xff0c;\u8fdb\u5165\u4f60\u521a\u521b\u5efa\u7684\u524d\u7aef\u9879\u76ee\u6587\u4ef6\u5939&#xff08;\u4f8b\u5982 frontend&#xff09;&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">cd<\/span> frontend<\/p>\n<p>\u7136\u540e&#xff0c;\u5b89\u88c5\u9879\u76ee\u6240\u9700\u7684\u6240\u6709\u4f9d\u8d56\u5e93\u3002npm create vue \u53ea\u662f\u521b\u5efa\u4e86\u9879\u76ee\u7ed3\u6784\u548c\u914d\u7f6e&#xff0c;\u5e76\u6ca1\u6709\u5b89\u88c5\u8fd9\u4e9b\u5e93\u3002<\/p>\n<p><span class=\"token function\">npm<\/span> <span class=\"token function\">install<\/span><br \/>\n<span class=\"token comment\"># \u6216\u8005\u5982\u679c\u4f60\u4e60\u60ef\u7528 yarn<\/span><br \/>\n<span class=\"token comment\"># yarn install<\/span><br \/>\n<span class=\"token comment\"># \u6216\u8005\u5982\u679c\u4f60\u4e60\u60ef\u7528 pnpm<\/span><br \/>\n<span class=\"token comment\"># pnpm install<\/span><\/p>\n<p>\u8fd9\u4e2a\u8fc7\u7a0b\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u65f6\u95f4&#xff0c;\u53d6\u51b3\u4e8e\u4f60\u7684\u7f51\u7edc\u901f\u5ea6\u3002npm \u4f1a\u8bfb\u53d6\u9879\u76ee\u4e2d\u7684 package.json \u6587\u4ef6&#xff0c;\u4e0b\u8f7d\u5e76\u5b89\u88c5\u5217\u51fa\u7684\u6240\u6709\u4f9d\u8d56\u53ca\u5176\u5b50\u4f9d\u8d56\u3002\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u4f1a\u5728 frontend \u6587\u4ef6\u5939\u4e0b\u751f\u6210\u4e00\u4e2a node_modules \u6587\u4ef6\u5939\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023541-682d3bfdb9e0e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h5>4. \u542f\u52a8\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u5668 (\u9a8c\u8bc1)<\/h5>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u4f60\u5c31\u53ef\u4ee5\u5c1d\u8bd5\u542f\u52a8\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u5668\u4e86\u3002<\/p>\n<p><span class=\"token function\">npm<\/span> run dev<br \/>\n<span class=\"token comment\"># \u6216\u8005\u5982\u679c\u4f60\u7528 yarn<\/span><br \/>\n<span class=\"token comment\"># yarn dev<\/span><br \/>\n<span class=\"token comment\"># \u6216\u8005\u5982\u679c\u4f60\u7528 pnpm<\/span><br \/>\n<span class=\"token comment\"># pnpm dev<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023541-682d3bfdd3f56.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8fd9\u8868\u793a\u4f60\u7684 Vue3 \u5f00\u53d1\u670d\u52a1\u5668\u5df2\u7ecf\u5728\u672c\u5730\u7684 http:\/\/localhost:5173\/ (\u7aef\u53e3\u53f7\u53ef\u80fd\u4e0d\u540c) \u8fd0\u884c\u8d77\u6765\u4e86\u3002\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u8fd9\u4e2a\u5730\u5740&#xff0c;\u4f60\u80fd\u770b\u5230\u4e00\u4e2a Vue3 \u7684\u6b22\u8fce\u9875\u9762&#xff0c;\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023541-682d3bfdeef7b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u6309\u4e0b Ctrl &#043; C \u53ef\u4ee5\u505c\u6b62\u524d\u7aef\u5f00\u53d1\u670d\u52a1\u5668\u3002<\/p>\n<h4>\u9879\u76ee\u76ee\u5f55\u7ed3\u6784\u9884\u89c8<\/h4>\n<p>\u5230\u76ee\u524d\u4e3a\u6b62&#xff0c; test-platform \u9879\u76ee\u6587\u4ef6\u5939\u7ed3\u6784\u5982\u4e0b&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023542-682d3bfe8546d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u540e\u7eed\u7684 Django \u540e\u7aef\u4ee3\u7801\u5c06\u653e\u5728 backend\/ \u7684\u6587\u4ef6\u5939&#xff0c;\u540e\u7aef\u548c\u524d\u7aef\u4ee3\u7801\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u662f\u5206\u5f00\u5b58\u653e\u7684&#xff0c;\u8fd9\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u5168\u6808\u9879\u76ee\u7ec4\u7ec7\u65b9\u5f0f&#xff0c;\u6e05\u6670\u4e14\u6613\u4e8e\u7ba1\u7406\u3002<\/p>\n<h4>\u603b\u7ed3<\/h4>\n<p>\u606d\u559c\u4f60&#xff01;\u4f60\u5df2\u7ecf\u6210\u529f\u642d\u5efa\u4e86 Django \u540e\u7aef\u548c Vue3 \u524d\u7aef\u9879\u76ee\u7684\u57fa\u672c\u5f00\u53d1\u73af\u5883\u3002<\/p>\n<p>\u2705 \u5b89\u88c5\u4e86 Python \u5e76\u914d\u7f6e\u4e86\u865a\u62df\u73af\u5883\u3002 \u2705 \u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5\u4e86 Django \u548c DRF\u3002 \u2705 \u5b89\u88c5\u4e86 Node.js \u548c npm\u3002 \u2705 \u4f7f\u7528 create-vue \u521b\u5efa\u4e86\u4e00\u4e2a Vue3 \u9879\u76ee&#xff0c;\u5e76\u5b89\u88c5\u4e86\u5176\u4f9d\u8d56\u3002 \u2705 \u6210\u529f\u542f\u52a8\u4e86 Vue3 \u7684\u5f00\u53d1\u670d\u52a1\u5668\u5e76\u770b\u5230\u4e86\u6b22\u8fce\u9875\u9762\u3002<\/p>\n<p>\u5728\u4e0b\u4e00\u7bc7\u6587\u7ae0\u4e2d&#xff0c;\u6211\u4eec\u5c06\u6b63\u5f0f\u5f00\u59cb\u6784\u5efa\u6d4b\u8bd5\u5e73\u53f0\u7684\u540e\u7aef\u90e8\u5206&#xff0c;\u9996\u5148\u4ece\u8bbe\u8ba1\u6570\u636e\u6a21\u578b\u5f00\u59cb&#xff0c;\u5b9a\u4e49\u6211\u4eec\u5e73\u53f0\u9700\u8981\u7ba1\u7406\u7684\u6570\u636e&#xff08;\u6bd4\u5982\u9879\u76ee\u3001\u6a21\u5757\u3001\u6d4b\u8bd5\u7528\u4f8b\u7b49&#xff09;\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb683\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u6b22\u8fce\u6765\u5230\u300aDjango + Vue3 \u6d4b\u8bd5\u5e73\u53f0\u300b\u5f00\u53d1\u5b9e\u6218\u4e13\u680f\uff01\u73b0\u5728\uff0c\u662f\u65f6\u5019\u64b8\u8d77\u8896\u5b50\uff0c\u4e3a\u6211\u4eec\u7684\u9879\u76ee\u51c6\u5907\u597d\u5f00\u53d1\u73af\u5883\u4e86\u3002\u73af\u5883\u642d\u5efa\u5c31\u50cf\u662f\u5efa\u9020\u623f\u5c4b\u524d\u7684\u5730\u57fa\u5de5\u4f5c\uff0c\u867d\u7136\u770b\u8d77\u6765\u67af\u71e5\uff0c\u4f46\u5374\u662f\u540e\u7eed\u4e00\u5207\u987a\u5229\u8fdb\u884c\u7684\u5173\u952e\u3002<\/p>\n","protected":false},"author":2,"featured_media":38787,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[684,890,3442,81,292,3443],"topic":[],"class_list":["post-38805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-vue3","tag-django","tag-django-vue3-","tag-python","tag-292","tag-3443"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e8c\u3001\u3010\u73af\u5883\u642d\u5efa\u7bc7\u3011\uff1aDjango \u548c Vue3 \u5f00\u53d1\u73af\u5883\u51c6\u5907 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/38805.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e8c\u3001\u3010\u73af\u5883\u642d\u5efa\u7bc7\u3011\uff1aDjango \u548c Vue3 \u5f00\u53d1\u73af\u5883\u51c6\u5907 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb683\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u6b22\u8fce\u6765\u5230\u300aDjango + Vue3 \u6d4b\u8bd5\u5e73\u53f0\u300b\u5f00\u53d1\u5b9e\u6218\u4e13\u680f\uff01\u73b0\u5728\uff0c\u662f\u65f6\u5019\u64b8\u8d77\u8896\u5b50\uff0c\u4e3a\u6211\u4eec\u7684\u9879\u76ee\u51c6\u5907\u597d\u5f00\u53d1\u73af\u5883\u4e86\u3002\u73af\u5883\u642d\u5efa\u5c31\u50cf\u662f\u5efa\u9020\u623f\u5c4b\u524d\u7684\u5730\u57fa\u5de5\u4f5c\uff0c\u867d\u7136\u770b\u8d77\u6765\u67af\u71e5\uff0c\u4f46\u5374\u662f\u540e\u7eed\u4e00\u5207\u987a\u5229\u8fdb\u884c\u7684\u5173\u952e\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/38805.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-21T02:35:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023539-682d3bfb8ddc5.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38805.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/38805.html\",\"name\":\"\u4e8c\u3001\u3010\u73af\u5883\u642d\u5efa\u7bc7\u3011\uff1aDjango \u548c Vue3 \u5f00\u53d1\u73af\u5883\u51c6\u5907 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-21T02:35:43+00:00\",\"dateModified\":\"2025-05-21T02:35:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/38805.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/38805.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38805.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e8c\u3001\u3010\u73af\u5883\u642d\u5efa\u7bc7\u3011\uff1aDjango \u548c Vue3 \u5f00\u53d1\u73af\u5883\u51c6\u5907\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4e8c\u3001\u3010\u73af\u5883\u642d\u5efa\u7bc7\u3011\uff1aDjango \u548c Vue3 \u5f00\u53d1\u73af\u5883\u51c6\u5907 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/38805.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e8c\u3001\u3010\u73af\u5883\u642d\u5efa\u7bc7\u3011\uff1aDjango \u548c Vue3 \u5f00\u53d1\u73af\u5883\u51c6\u5907 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb683\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf6\u6b21\u3002\u6b22\u8fce\u6765\u5230\u300aDjango + Vue3 \u6d4b\u8bd5\u5e73\u53f0\u300b\u5f00\u53d1\u5b9e\u6218\u4e13\u680f\uff01\u73b0\u5728\uff0c\u662f\u65f6\u5019\u64b8\u8d77\u8896\u5b50\uff0c\u4e3a\u6211\u4eec\u7684\u9879\u76ee\u51c6\u5907\u597d\u5f00\u53d1\u73af\u5883\u4e86\u3002\u73af\u5883\u642d\u5efa\u5c31\u50cf\u662f\u5efa\u9020\u623f\u5c4b\u524d\u7684\u5730\u57fa\u5de5\u4f5c\uff0c\u867d\u7136\u770b\u8d77\u6765\u67af\u71e5\uff0c\u4f46\u5374\u662f\u540e\u7eed\u4e00\u5207\u987a\u5229\u8fdb\u884c\u7684\u5173\u952e\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/38805.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-21T02:35:43+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023539-682d3bfb8ddc5.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/38805.html","url":"https:\/\/www.wsisp.com\/helps\/38805.html","name":"\u4e8c\u3001\u3010\u73af\u5883\u642d\u5efa\u7bc7\u3011\uff1aDjango \u548c Vue3 \u5f00\u53d1\u73af\u5883\u51c6\u5907 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-21T02:35:43+00:00","dateModified":"2025-05-21T02:35:43+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/38805.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/38805.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/38805.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e8c\u3001\u3010\u73af\u5883\u642d\u5efa\u7bc7\u3011\uff1aDjango \u548c Vue3 \u5f00\u53d1\u73af\u5883\u51c6\u5907"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/38805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=38805"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/38805\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/38787"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=38805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=38805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=38805"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=38805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}