{"id":353,"date":"2025-04-29T09:28:22","date_gmt":"2025-04-29T01:28:22","guid":{"rendered":"https:\/\/www.hyw.life\/?p=353"},"modified":"2025-10-21T17:23:12","modified_gmt":"2025-10-21T09:23:12","slug":"naive-ui-admin-%e6%98%af%e4%b8%80%e6%ac%be-%e5%ae%8c%e5%85%a8%e5%85%8d%e8%b4%b9-%e4%b8%94%e5%8f%af%e5%95%86%e7%94%a8%e7%9a%84%e4%b8%ad%e5%90%8e%e5%8f%b0%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88","status":"publish","type":"post","link":"https:\/\/www.hyw.life\/?p=353","title":{"rendered":"Naive Ui Admin \u662f\u4e00\u6b3e \u5b8c\u5168\u514d\u8d39 \u4e14\u53ef\u5546\u7528\u7684\u4e2d\u540e\u53f0\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"\n<span id=\"h2-0\" class=\"heading-anchor\" aria-hidden=\"true\"><\/span><h2 class=\"wp-block-heading\"><strong>\ud83d\ude80 \u7b80\u4ecb<\/strong><\/h2>\n\n\n\n<p>`Naive Ui Admin` \u662f\u4e00\u6b3e \u5b8c\u5168\u514d\u8d39 \u4e14\u53ef\u5546\u7528\u7684\u4e2d\u540e\u53f0\u89e3\u51b3\u65b9\u6848\uff0c\u57fa\u4e8e \ud83c\udf1f `Vue3.0` \ud83c\udf1f\u3001\ud83d\ude80 `Vite` \ud83d\ude80\u3001\u2728 [Naive UI](https:\/\/www.naiveui.com\/) \u2728 \u548c \ud83c\udf89 `TypeScript` \ud83c\udf89\u3002<\/p>\n\n\n\n<p>\u5b83\u878d\u5408\u4e86\u6700\u65b0\u7684\u524d\u7aef\u6280\u672f\u6808\uff0c\u63d0\u70bc\u4e86\u5178\u578b\u7684\u4e1a\u52a1\u6a21\u578b\u548c\u9875\u9762\uff0c\u5305\u62ec\u4e8c\u6b21\u5c01\u88c5\u7ec4\u4ef6\u3001\u52a8\u6001\u83dc\u5355\u3001\u6743\u9650\u6821\u9a8c\u7b49\u529f\u80fd\uff0c\u52a9\u529b\u5feb\u901f\u642d\u5efa\u4f01\u4e1a\u7ea7\u4e2d\u540e\u53f0\u9879\u76ee\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.hyw.life\/wp-content\/uploads\/2025\/04\/image.png\"><img decoding=\"async\" src=\"https:\/\/www.hyw.life\/wp-content\/uploads\/2025\/04\/image.png\" alt=\"\" class=\"wp-image-360\"\/><\/a><\/figure>\n\n\n\n<span id=\"h2-1\" class=\"heading-anchor\" aria-hidden=\"true\"><\/span><h2 class=\"wp-block-heading\"><strong>\ud83c\udf08 \u7279\u6027<\/strong><\/h2>\n\n\n\n<p>\ud83d\udce6 \u4e8c\u6b21\u5c01\u88c5\u7684\u5b9e\u7528\u9ad8\u6269\u5c55\u6027\u7ec4\u4ef6<\/p>\n\n\n\n<p>\ud83c\udfa8 \u54cd\u5e94\u5f0f\u3001\u591a\u4e3b\u9898\u3001\u591a\u914d\u7f6e\uff0c\u5feb\u901f\u96c6\u6210\uff0c\u5f00\u7bb1\u5373\u7528<\/p>\n\n\n\n<p>\ud83d\ude80 \u5f3a\u5927\u7684\u9274\u6743\u7cfb\u7edf\uff0c\u652f\u6301 \u4e09\u79cd\u9274\u6743\u6a21\u5f0f\uff0c\u6ee1\u8db3\u591a\u6837\u4e1a\u52a1\u9700\u6c42<\/p>\n\n\n\n<p>\ud83c\udf10 \u6301\u7eed\u66f4\u65b0\u7684\u5b9e\u7528\u6027\u9875\u9762\u6a21\u677f\u548c\u4ea4\u4e92\u8bbe\u8ba1\uff0c\u7b80\u5316\u9875\u9762\u6784\u5efa<\/p>\n\n\n\n<span id=\"h2-2\" class=\"heading-anchor\" aria-hidden=\"true\"><\/span><h2 class=\"wp-block-heading\"><strong>\ud83c\udfa5 \u9884\u89c8<\/strong><\/h2>\n\n\n\n<p>&#8211; [naive-ui-admin](https:\/\/jekip.github.io)<\/p>\n\n\n\n<p>\u8d26\u53f7\uff1aadmin\uff0c\u5bc6\u7801\uff1a123456\uff08\u968f\u610f\uff09<\/p>\n\n\n\n<p><strong>## \ud83d\udca1 \u63d0\u793a<\/strong><\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u9700\u8981\u66f4\u591a\u529f\u80fd\u548c\u7ec4\u4ef6\uff0c\u4e0d\u59a8\u5c1d\u8bd5\u5168\u65b0\u7684 `NaiveAdmin`\uff0c\u5b83\u53ef\u80fd\u6b63\u662f\u60a8\u5bfb\u627e\u7684\u89e3\u51b3\u65b9\u6848<\/p>\n\n\n\n<p>[NaiveAdmin \u5b98\u7f51](https:\/\/www.naiveadmin.com)<\/p>\n\n\n\n<span id=\"h2-3\" class=\"heading-anchor\" aria-hidden=\"true\"><\/span><h2 class=\"wp-block-heading\"><strong>\ud83d\udcda \u6587\u6863<\/strong><\/h2>\n\n\n\n<p>[\u6587\u6863\u5730\u5740](https:\/\/docs.naiveadmin.com)<\/p>\n\n\n\n<span id=\"h2-4\" class=\"heading-anchor\" aria-hidden=\"true\"><\/span><h2 class=\"wp-block-heading\"><strong>\ud83c\udfd7\ufe0f \u4f7f\u7528<\/strong><\/h2>\n\n\n\n<p>&#8211; \u83b7\u53d6\u9879\u76ee\u4ee3\u7801<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/jekip\/naive-ui-admin.git<\/code><\/pre>\n\n\n\n<p>&#8211; \u5b89\u88c5\u4f9d\u8d56<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd naive-ui-admin\n\npnpm install<\/code><\/pre>\n\n\n\n<p>&#8211; \u8fd0\u884c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pnpm run dev<\/code><\/pre>\n\n\n\n<p>&#8211; \u6253\u5305<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pnpm build<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<span id=\"h2-5\" class=\"heading-anchor\" aria-hidden=\"true\"><\/span><h2 class=\"wp-block-heading\">\ud83d\udc96\u00a0\u6253\u8d4f\u652f\u6301<\/h2>\n\n\n\n<p>\u6574\u7406\u4e0d\u6613\uff0c\u611f\u8c22\u652f\u6301\uff01\uff01\uff01<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.hyw.life\/wp-content\/uploads\/2023\/06\/1687257652611.png\"><img decoding=\"async\" data-id=\"40\" src=\"https:\/\/www.hyw.life\/wp-content\/uploads\/2023\/06\/1687257652611.png\" alt=\"\" class=\"wp-image-40\"\/><\/a><figcaption class=\"wp-element-caption\">\u652f\u4ed8\u5b9d<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.hyw.life\/wp-content\/uploads\/2023\/06\/1686812898232.png\"><img decoding=\"async\" data-id=\"29\" src=\"https:\/\/www.hyw.life\/wp-content\/uploads\/2023\/06\/1686812898232.png\" alt=\"\" class=\"wp-image-29\"\/><\/a><figcaption class=\"wp-element-caption\">\u5fae\u4fe1<\/figcaption><\/figure>\n<\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\ude80 \u7b80\u4ecb `Naive Ui Admin` \u662f\u4e00\u6b3e \u5b8c\u5168\u514d\u8d39 \u4e14\u53ef\u5546\u7528\u7684\u4e2d\u540e\u53f0\u89e3\u51b3\u65b9\u6848\uff0c\u57fa\u4e8e \ud83c\udf1f `Vue3. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":483,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,20],"tags":[22,23,18],"class_list":["post-353","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qd","category-project","tag-admin","tag-naive","tag-vue"],"_links":{"self":[{"href":"https:\/\/www.hyw.life\/index.php?rest_route=\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyw.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hyw.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyw.life\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyw.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=353"}],"version-history":[{"count":6,"href":"https:\/\/www.hyw.life\/index.php?rest_route=\/wp\/v2\/posts\/353\/revisions"}],"predecessor-version":[{"id":364,"href":"https:\/\/www.hyw.life\/index.php?rest_route=\/wp\/v2\/posts\/353\/revisions\/364"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hyw.life\/index.php?rest_route=\/wp\/v2\/media\/483"}],"wp:attachment":[{"href":"https:\/\/www.hyw.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hyw.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hyw.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}