{"id":93680,"date":"2026-08-13T01:32:55","date_gmt":"2026-08-12T17:32:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/93680.html"},"modified":"2026-08-13T01:32:55","modified_gmt":"2026-08-12T17:32:55","slug":"%e5%90%8e%e7%ab%af%e6%8e%a5%e5%8f%a3%e5%8f%88%e5%8f%8c%e5%8f%92%e6%b2%a1%e5%86%99%e5%a5%bd%ef%bc%9f3-%e6%ad%a5%e6%90%ad%e5%bb%ba%e5%89%8d%e7%ab%af-mock%ef%bc%8c%e4%bb%8e%e6%ad%a4%e5%91%8a%e5%88%ab","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/93680.html","title":{"rendered":"\u540e\u7aef\u63a5\u53e3\u53c8\u53cc\u53d2\u6ca1\u5199\u597d\uff1f3 \u6b65\u642d\u5efa\u524d\u7aef Mock\uff0c\u4ece\u6b64\u544a\u522b\u201c\u50bb\u7b49\u540e\u7aef\u201c"},"content":{"rendered":"<p>\u300c\u540e\u7aef\u63a5\u53e3\u4e0b\u5468\u624d\u7ed9&#xff0c;\u524d\u7aef\u9875\u9762\u8fd9\u5468\u5c31\u8981\u4ea4\u4ed8\u3002\u300d<br \/>\n\u8fd9\u53e5\u8bdd&#xff0c;\u5927\u6982\u662f\u524d\u540e\u7aef\u5206\u79bb\u9879\u76ee\u91cc&#xff0c;\u524d\u7aef\u542c\u5230\u6700\u591a\u6b21\u7684\u5669\u68a6\u5f00\u573a\u3002<\/p>\n<p>\u524d\u7aef\u96be\u9053\u53ea\u80fd\u5e72\u7b49&#xff1f;<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812173252-6a7cae44583f9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4e0d\u7528\u3002 \u524d\u7aef\u5b8c\u5168\u53ef\u4ee5\u5148\u628a\u6574\u4e2a App \u72ec\u7acb\u8dd1\u8d77\u6765&#xff0c;\u754c\u9762\u3001\u8def\u7531\u3001\u72b6\u6001\u3001\u4ea4\u4e92\u5168\u90e8\u81ea\u7ed9\u81ea\u8db3&#xff0c;\u552f\u4e00\u7684\u7b49\u5f85\u70b9\u2014\u2014\u540e\u7aef\u63a5\u53e3\u2014\u2014\u7528 Mock \u9876\u4e0a\u53bb\u3002<\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u5e26\u4f60\u4ece 0 \u642d\u4e00\u5957\u524d\u7aef API \u5de5\u7a0b&#xff0c;\u8bfb\u5b8c\u4f60\u80fd\u62ff\u5230&#xff1a;<\/p>\n<ul>\n<li>\u7edf\u4e00\u7ba1\u7406\u63a5\u53e3\u7684 api\/ \u76ee\u5f55<\/li>\n<li>\u4e00\u884c\u4ee3\u7801\u5207\u6362 Mock \/ \u771f\u5b9e\u540e\u7aef<\/li>\n<li>\u5b8c\u6574\u53ef\u8fd0\u884c\u4ee3\u7801 &#043; 5 \u4e2a\u8e29\u5751\u63d0\u9192<\/li>\n<\/ul>\n<p>\u5168\u7a0b 3 \u6b65&#xff0c;10 \u5206\u949f\u5c31\u80fd\u8dd1\u8d77\u6765\u3002<\/p>\n<h3>\u9879\u76ee\u5f00\u59cb\u524d&#xff1a;\u5148\u60f3\u6e05\u695a\u4e00\u4ef6\u4e8b<\/h3>\n<p>\u524d\u540e\u7aef\u5206\u79bb\u7684\u9879\u76ee&#xff0c;\u524d\u7aef\u6709\u81ea\u5df1\u7684\u4e09\u9a7e\u9a6c\u8f66&#xff1a;<\/p>\n<p>\u7ec4\u4ef6&#xff08;\u54cd\u5e94\u5f0f&#xff09;&#043; \u8def\u7531 &#043; \u72b6\u6001\u7ba1\u7406<\/p>\n<p>\u5b83\u4eec\u6491\u8d77\u4e86\u6574\u4e2a\u72ec\u7acb\u7684\u524d\u7aef\u5e94\u7528\u3002\u4f46\u524d\u7aef\u771f\u7684\u5f7b\u5e95\u72ec\u7acb\u4e86\u5417&#xff1f;\u6ca1\u6709&#xff0c;\u8fd8\u5269\u6700\u540e\u4e00\u4e2a\u8026\u5408\u70b9&#xff1a;<\/p>\n<p>\/api \u63a5\u53e3\u3002<\/p>\n<p>\u9875\u9762\u8981\u6e32\u67d3\u6570\u636e&#xff0c;\u5c31\u5f97\u5411\u540e\u7aef\u8981\u3002\u540e\u7aef\u5f00\u53d1\u6162\u3001\u6392\u671f\u665a&#xff0c;\u524d\u7aef\u5c31\u5361\u4f4f\u2014\u2014\u8fd9\u5c31\u662f&#034;\u50bb\u7b49\u540e\u7aef&#034;\u7684\u6839\u6e90\u3002<\/p>\n<p>\u6240\u4ee5\u89e3\u51b3\u65b9\u6848\u4e0d\u662f\u7b49&#xff0c;\u800c\u662f&#xff1a;\u524d\u7aef\u81ea\u5df1\u5148\u9020\u4e00\u4e2a&#034;\u63a5\u53e3\u540e\u7aef&#034;&#xff0c;\u7b49\u771f\u540e\u7aef\u5c31\u7eea&#xff0c;\u518d\u4e00\u952e\u5207\u8fc7\u53bb\u3002<\/p>\n<p>\u8fd9\u5c31\u662f\u524d\u7aef API \u5de5\u7a0b\u3002<\/p>\n<h3>\u7b2c\u4e00\u6b65&#xff1a;\u642d\u4e00\u4e2a api \u76ee\u5f55&#xff0c;\u7edf\u4e00\u7ba1\u7406\u6240\u6709\u63a5\u53e3<\/h3>\n<p>\u5f88\u591a\u9879\u76ee\u91cc&#xff0c;\u8bf7\u6c42\u4e1c\u5199\u4e00\u4e2a fetch&#xff0c;\u897f\u5199\u4e00\u4e2a axios&#xff0c;\u6563\u843d\u5728\u5404\u4e2a\u7ec4\u4ef6\u91cc\u3002<\/p>\n<p>\u4e00\u65e6\u540e\u7aef\u6539\u8def\u5f84\u3001\u6362\u57df\u540d&#xff0c;\u524d\u7aef\u5c31\u5f97\u6ee1\u9879\u76ee\u627e&#xff0c;\u6539\u5230\u6000\u7591\u4eba\u751f\u3002<\/p>\n<p>\u6b63\u786e\u505a\u6cd5&#xff1a;\u5efa\u4e00\u4e2a api\/ \u76ee\u5f55&#xff0c;\u628a\u524d\u7aef\u6240\u6709\u7684\u63a5\u53e3\u8bf7\u6c42\u7edf\u4e00\u6536\u7f16\u3002<\/p>\n<p>\u5148\u5efa\u4e00\u4e2a axios \u5b9e\u4f8b&#xff0c;\u7edf\u4e00\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ src\/api\/config.js \u2014\u2014 \u5168\u5c40\u552f\u4e00 axios \u5b9e\u4f8b<\/span><br \/>\n<span class=\"token keyword\">import<\/span> axios <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;axios&#039;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">const<\/span> instance <span class=\"token operator\">&#061;<\/span> axios<span class=\"token punctuation\">.<\/span><span class=\"token function\">create<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">baseURL<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;\/api&#039;<\/span><span class=\"token punctuation\">,<\/span>                 <span class=\"token comment\">\/\/ \u5f00\u53d1\u9636\u6bb5&#xff1a;\u8d70 vite mock<\/span><br \/>\n  <span class=\"token comment\">\/\/ baseURL: &#039;http:\/\/localhost:3000&#039;, \/\/ \u540e\u7aef\u5c31\u7eea\u540e&#xff1a;\u4e00\u952e\u5207\u6362<\/span><br \/>\n  <span class=\"token literal-property property\">timeout<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">5000<\/span><span class=\"token punctuation\">,<\/span>                   <span class=\"token comment\">\/\/ 5 \u79d2\u8d85\u65f6<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">export<\/span> <span class=\"token keyword\">default<\/span> instance<span class=\"token punctuation\">;<\/span><\/p>\n<p>\u518d\u6309\u6a21\u5757\u62c6\u5206\u63a5\u53e3\u6587\u4ef6&#xff0c;\u4e00\u4e2a\u6a21\u5757\u4e00\u4e2a js&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ src\/api\/todos.js \u2014\u2014 todos \u76f8\u5173\u7684\u63a5\u53e3<\/span><br \/>\n<span class=\"token keyword\">import<\/span> axios <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;.\/config&#039;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">export<\/span> <span class=\"token keyword\">const<\/span> <span class=\"token function-variable function\">getTodos<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">async<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">const<\/span> res <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">await<\/span> axios<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;\/todos&#039;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> res<span class=\"token punctuation\">.<\/span>data<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u6ce8\u610f&#xff1a;get(&#039;\/todos&#039;) \u52a0\u4e0a baseURL \/api&#xff0c;\u5b9e\u9645\u8bf7\u6c42\u662f \/api\/todos\u3002<\/p>\n<p>\u7ec4\u4ef6\u91cc\u518d\u4e5f\u770b\u4e0d\u5230 axios \u957f\u4ec0\u4e48\u6837&#xff0c;\u53ea\u8c03\u7528 getTodos()\u3002\u63a5\u53e3\u5c42\u4ece\u6b64\u548c\u540e\u7aef\u4e00\u6837&#xff0c;\u53ef\u4ee5\u72ec\u7acb\u6f14\u8fdb\u3002<\/p>\n<h3>\u7b2c\u4e8c\u6b65&#xff1a;vite-plugin-mock&#xff0c;2 \u884c\u914d\u7f6e\u628a&#034;\u540e\u7aef&#034;\u8dd1\u8d77\u6765<\/h3>\n<p>\u63a5\u53e3\u5c42\u6709\u4e86&#xff0c;\u8c01\u6765\u54cd\u5e94&#xff1f;<\/p>\n<p>Mock\u3002<\/p>\n<p>\u7528 vite-plugin-mock&#xff0c;\u5728 vite.config.js \u91cc\u52a0\u4e24\u884c\u914d\u7f6e&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ vite.config.js<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> defineConfig <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;vite&#039;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> react <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;&#064;vitejs\/plugin-react&#039;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> viteMockServe <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;vite-plugin-mock&#039;<\/span><\/p>\n<p><span class=\"token keyword\">export<\/span> <span class=\"token keyword\">default<\/span> <span class=\"token function\">defineConfig<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">plugins<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token function\">react<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token function\">viteMockServe<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token literal-property property\">mockPath<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;mock&#039;<\/span><span class=\"token punctuation\">,<\/span>     <span class=\"token comment\">\/\/ mock \u6587\u4ef6\u76ee\u5f55<\/span><br \/>\n      <span class=\"token literal-property property\">localEnabled<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span>   <span class=\"token comment\">\/\/ \u5f00\u53d1\u73af\u5883\u5f00\u542f<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u7136\u540e\u5728\u9879\u76ee\u6839\u76ee\u5f55\u5efa mock\/todos.js&#xff0c;\u6a21\u62df\u540e\u7aef\u8fd4\u56de&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ mock\/todos.js \u2014\u2014 \u524d\u7aef\u81ea\u5df1\u7684&#034;\u540e\u7aef&#034;<\/span><br \/>\n<span class=\"token keyword\">export<\/span> <span class=\"token keyword\">default<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n  <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token literal-property property\">url<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;\/api\/todos&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token literal-property property\">method<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;get&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token literal-property property\">timeout<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">2000<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\">\/\/ \u6a21\u62df\u7f51\u7edc\u5ef6\u8fdf<\/span><br \/>\n    <span class=\"token function-variable function\">response<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token parameter\">req<span class=\"token punctuation\">,<\/span> res<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token literal-property property\">code<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span>      <span class=\"token comment\">\/\/ \u7ea6\u5b9a&#xff1a;0 \u8868\u793a\u6210\u529f<\/span><br \/>\n      <span class=\"token literal-property property\">todos<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span> <span class=\"token literal-property property\">id<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token literal-property property\">title<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;\u5b66\u4e60\u524d\u7aef\u63a5\u53e3\u5de5\u7a0b&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token literal-property property\">completed<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span> <span class=\"token literal-property property\">id<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token literal-property property\">title<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;\u770b\u9f99\u9910\u9986&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token literal-property property\">completed<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u542f\u52a8 npm run dev&#xff0c;\u6d4f\u89c8\u5668\u8bbf\u95ee http:\/\/localhost:5173\/api\/todos&#xff0c;\u6570\u636e\u5c31\u56de\u6765\u4e86\u3002<\/p>\n<p>\u754c\u9762\u8fd8\u6ca1\u5199\u5b8c\u7684\u65f6\u5019&#xff0c;\u4f60\u8fd8\u80fd\u628a Mock \u91cc\u7684\u6570\u636e\u7ed3\u6784\u5f53\u6210&#034;\u63a5\u53e3\u5951\u7ea6&#034;\u4e22\u7ed9\u540e\u7aef&#xff1a;\u6309\u8fd9\u4e2a\u5b57\u6bb5\u7ed9\u6211\u3002<\/p>\n<h3>\u7b2c\u4e09\u6b65&#xff1a;\u9875\u9762\u91cc\u8c03\u7528&#xff0c;\u7ec4\u4ef6\u53ea\u5173\u5fc3\u6570\u636e<\/h3>\n<p>Mock \u5c31\u7eea&#xff0c;\u9875\u9762\u5c31\u53ef\u4ee5\u5b8c\u5168\u72ec\u7acb\u5f00\u53d1\u4e86&#xff1a;<\/p>\n<p>\/\/ src\/pages\/Todos.jsx<br \/>\nimport { getTodos } from &#039;..\/api\/todos&#039;;<br \/>\nimport { useEffect, useState } from &#039;react&#039;;<\/p>\n<p>function Todos() {<br \/>\n  const [todos, setTodos] &#061; useState([]);<\/p>\n<p>  useEffect(() &#061;&gt; {<br \/>\n    \/\/ IIFE&#xff1a;\u7acb\u5373\u6267\u884c\u51fd\u6570&#xff0c;\u5305\u4f4f async\/await<br \/>\n    (async () &#061;&gt; {<br \/>\n      const data &#061; await getTodos();<br \/>\n      setTodos(data);<br \/>\n    })();<br \/>\n  }, []);<\/p>\n<p>  return (<br \/>\n    &lt;ul&gt;<br \/>\n      {todos.map((t) &#061;&gt; (<br \/>\n        &lt;li key&#061;{t.id}&gt;{t.completed ? &#039;\u5df2\u5b8c\u6210&#039; : &#039;\u672a\u5b8c\u6210&#039;}&#xff1a;{t.title}&lt;\/li&gt;<br \/>\n      ))}<br \/>\n    &lt;\/ul&gt;<br \/>\n  );<br \/>\n}<br \/>\nexport default Todos;<\/p>\n<p>\u5230\u8fd9\u91cc&#xff0c;\u524d\u7aef\u4ece\u8def\u7531\u5230\u6570\u636e&#xff0c;\u6574\u4e2a App \u5df2\u7ecf\u80fd\u72ec\u7acb\u8dd1\u5b8c\u3002 \u9875\u9762\u8def\u7531\u4ea4\u7ed9 react-router-dom&#xff0c;\u63a5\u53e3\u8def\u7531\u4ea4\u7ed9 api\/ \u76ee\u5f55&#xff0c;\u5404\u53f8\u5176\u804c\u3002<\/p>\n<h3>\u4e00\u952e\u5207\u6362&#xff1a;\u4ece Mock \u5230\u771f\u5b9e\u540e\u7aef<\/h3>\n<p>\u540e\u7aef\u63a5\u53e3\u7ec8\u4e8e\u5199\u597d\u4e86&#xff0c;\u5207\u8fc7\u53bb\u53ea\u9700\u8981\u6539\u4e00\u4e2a\u5730\u65b9&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ src\/api\/config.js<\/span><br \/>\n<span class=\"token keyword\">const<\/span> instance <span class=\"token operator\">&#061;<\/span> axios<span class=\"token punctuation\">.<\/span><span class=\"token function\">create<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">baseURL<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;http:\/\/localhost:3000&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u771f\u5b9e\u540e\u7aef<\/span><br \/>\n  <span class=\"token literal-property property\">timeout<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">5000<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u4e00\u884c\u914d\u7f6e&#xff0c;\u5168\u5c40\u751f\u6548\u3002<\/p>\n<p>\u6240\u6709\u9875\u9762\u3001\u6240\u6709\u7ec4\u4ef6\u90fd\u4e0d\u7528\u52a8\u3002\u8fd9\u5c31\u662f\u628a\u63a5\u53e3\u6536\u8fdb api\/ \u76ee\u5f55\u7684\u6700\u5927\u597d\u5904&#xff1a;\u5207\u6362\u6210\u672c\u7ea6\u7b49\u4e8e 0\u3002<\/p>\n<h3>\u8e29\u5751\u63d0\u9192&#xff1a;5 \u4e2a\u6211\u8e29\u8fc7\u7684\u5751<\/h3>\n<li>\n<p>url \u522b\u6f0f\u4e86 \/api \u524d\u7f00<br \/>\nbaseURL \u662f \/api&#xff0c;mock \u91cc\u7684 url \u4e5f\u5fc5\u987b\u662f \/api\/todos\u3002\u6f0f\u4e00\u4e2a\u524d\u7f00&#xff0c;\u9875\u9762\u6c38\u8fdc\u62ff\u4e0d\u5230\u6570\u636e&#xff0c;\u5149\u62a5 404\u3002<\/p>\n<\/li>\n<li>\n<p>mock \u6587\u4ef6\u5fc5\u987b export default \u6570\u7ec4<br \/>\nvite-plugin-mock \u53ea\u8ba4\u9ed8\u8ba4\u5bfc\u51fa&#xff0c;\u5199\u6210 export const \u4f1a\u76f4\u63a5\u4e0d\u751f\u6548&#xff0c;\u800c\u4e14\u4e0d\u62a5\u9519\u2014\u2014\u6700\u96be\u67e5\u7684\u90a3\u79cd\u3002<\/p>\n<\/li>\n<li>\n<p>localEnabled \u8bb0\u5f97\u533a\u5206\u73af\u5883<br \/>\n\u5f00\u53d1\u73af\u5883\u5f00\u542f&#xff0c;\u751f\u4ea7\u73af\u5883\u5fc5\u987b\u5173\u95ed&#xff08;\u9ed8\u8ba4\u5173\u95ed&#xff09;\u3002\u5426\u5219\u7ebf\u4e0a build \u4f1a\u5939\u5e26 mock \u4ee3\u7801&#xff0c;\u771f\u5b9e\u63a5\u53e3\u76f4\u63a5\u88ab&#034;\u52ab\u6301&#034;\u3002<\/p>\n<\/li>\n<li>\n<p>\u6e32\u67d3\u5217\u8868\u8981\u5199 key<br \/>\nkey&#061;{t.id} \u4e0d\u5199&#xff0c;\u5217\u8868\u4e00\u957f&#xff0c;\u63a7\u5236\u53f0\u5168\u662f warning&#xff0c;\u66f4\u65b0\u65f6\u8fd8\u4f1a\u51fa\u5404\u79cd\u8be1\u5f02 bug\u3002<\/p>\n<\/li>\n<li>\n<p>\u5207\u5230\u771f\u5b9e\u540e\u7aef\u540e&#xff0c;\u8de8\u57df\u662f\u4e0b\u4e00\u4e2a\u5751<br \/>\n\u672c\u5730 5173 \u8bf7\u6c42 3000&#xff0c;\u8de8\u57df\u3002\u5f00\u53d1\u73af\u5883\u53ef\u4ee5\u914d Vite \u7684 server.proxy&#xff0c;\u8ba9\u540e\u7aef\u5728\u4ee3\u7406\u540e\u9762\u65e0\u611f\u5207\u6362\u3002<\/p>\n<\/li>\n<h3>\u603b\u7ed3&#xff1a;\u524d\u7aef API \u5de5\u7a0b&#xff0c;\u503c\u4e0d\u503c\u5f97\u505a&#xff1f;<\/h3>\n<p>\u503c\u3002<\/p>\n<p>\u8868\u9762\u4e0a&#xff0c;\u5b83\u53ea\u662f\u591a\u4e86\u4e2a api\/ \u76ee\u5f55\u548c\u51e0\u884c mock \u914d\u7f6e\u3002<\/p>\n<p>\u4f46\u957f\u671f\u770b&#xff0c;\u5b83\u5e26\u6765\u4e09\u6837\u4e1c\u897f&#xff1a;<\/p>\n<ul>\n<li>\u524d\u7aef\u4e0d\u518d\u7b49\u540e\u7aef&#xff0c;\u5f00\u53d1\u8282\u594f\u81ea\u5df1\u638c\u63a7<\/li>\n<li>\u63a5\u53e3\u7edf\u4e00\u7ba1\u7406&#xff0c;\u6539\u5730\u5740\u3001\u6362\u57df\u540d&#xff0c;\u53ea\u52a8\u4e00\u4e2a\u6587\u4ef6<\/li>\n<li>Mock \u5373\u5951\u7ea6&#xff0c;\u6570\u636e\u7ed3\u6784\u63d0\u524d\u9501\u5b9a&#xff0c;\u8054\u8c03\u6210\u672c\u5927\u5e45\u4e0b\u964d<\/li>\n<\/ul>\n<p>\u524d\u540e\u7aef\u5206\u79bb&#xff0c;\u5206\u79bb\u7684\u4e0d\u4ec5\u662f\u4ee3\u7801&#xff0c;\u66f4\u662f\u5404\u81ea\u7684\u5f00\u53d1\u8282\u594f\u3002<\/p>\n<p>\u800c\u524d\u7aef API \u5de5\u7a0b&#xff0c;\u5c31\u662f\u90a3\u6761\u628a\u8282\u594f\u63e1\u5728\u81ea\u5df1\u624b\u91cc\u7684\u7ebf\u3002<\/p>\n<h3>\u6700\u540e<\/h3>\n<p>\u4f60\u4e5f\u5728\u7b49\u540e\u7aef\u6392\u671f\u5417&#xff1f;\u8fd8\u662f\u8bf4&#xff0c;\u4f60\u4eec\u56e2\u961f\u5df2\u7ecf\u5728\u7528 mock \u5f00\u53d1\u4e86&#xff1f;<\/p>\n<p>\u8bc4\u8bba\u533a\u804a\u804a\u4f60\u7684&#034;\u7b49\u63a5\u53e3&#034;\u6545\u4e8b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300c\u540e\u7aef\u63a5\u53e3\u4e0b\u5468\u624d\u7ed9&#xff0c;\u524d\u7aef\u9875\u9762\u8fd9\u5468\u5c31\u8981\u4ea4\u4ed8\u3002\u300d<br \/>\n\u8fd9\u53e5\u8bdd&#xff0c;\u5927\u6982\u662f\u524d\u540e\u7aef\u5206\u79bb\u9879\u76ee\u91cc&#xff0c;\u524d\u7aef\u542c\u5230\u6700\u591a\u6b21\u7684\u5669\u68a6\u5f00\u573a\u3002\u524d\u7aef\u96be\u9053\u53ea\u80fd\u5e72\u7b49&#xff1f;\u4e0d\u7528\u3002 \u524d\u7aef\u5b8c\u5168\u53ef\u4ee5\u5148\u628a\u6574\u4e2a App \u72ec\u7acb\u8dd1\u8d77\u6765&#xff0c;\u754c\u9762\u3001\u8def\u7531\u3001\u72b6\u6001\u3001\u4ea4\u4e92\u5168\u90e8\u81ea\u7ed9\u81ea\u8db3&#xff0c;\u552f\u4e00\u7684\u7b49\u5f85\u70b9\u2014\u2014\u540e\u7aef\u63a5\u53e3\u2014\u2014\u7528 Mock \u9876\u4e0a\u53bb\u3002<br \/>\n\u8fd9\u7bc7\u6587\u7ae0\u5e26\u4f60\u4ece 0 \u642d\u4e00\u5957\u524d\u7aef API \u5de5\u7a0b&#xff0c;\u8bfb\u5b8c\u4f60\u80fd\u62ff\u5230&#xff1a;<br \/>\n\u7edf\u4e00\u7ba1\u7406\u63a5\u53e3\u7684 api\/ \u76ee\u5f55\u4e00\u884c\u4ee3\u7801\u5207\u6362 M<\/p>\n","protected":false},"author":2,"featured_media":93679,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10336,87,1654],"topic":[],"class_list":["post-93680","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-10336","tag-87","tag-1654"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u540e\u7aef\u63a5\u53e3\u53c8\u53cc\u53d2\u6ca1\u5199\u597d\uff1f3 \u6b65\u642d\u5efa\u524d\u7aef Mock\uff0c\u4ece\u6b64\u544a\u522b\u201c\u50bb\u7b49\u540e\u7aef\u201c - \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\/93680.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u540e\u7aef\u63a5\u53e3\u53c8\u53cc\u53d2\u6ca1\u5199\u597d\uff1f3 \u6b65\u642d\u5efa\u524d\u7aef Mock\uff0c\u4ece\u6b64\u544a\u522b\u201c\u50bb\u7b49\u540e\u7aef\u201c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u300c\u540e\u7aef\u63a5\u53e3\u4e0b\u5468\u624d\u7ed9&#xff0c;\u524d\u7aef\u9875\u9762\u8fd9\u5468\u5c31\u8981\u4ea4\u4ed8\u3002\u300d \u8fd9\u53e5\u8bdd&#xff0c;\u5927\u6982\u662f\u524d\u540e\u7aef\u5206\u79bb\u9879\u76ee\u91cc&#xff0c;\u524d\u7aef\u542c\u5230\u6700\u591a\u6b21\u7684\u5669\u68a6\u5f00\u573a\u3002\u524d\u7aef\u96be\u9053\u53ea\u80fd\u5e72\u7b49&#xff1f;\u4e0d\u7528\u3002 \u524d\u7aef\u5b8c\u5168\u53ef\u4ee5\u5148\u628a\u6574\u4e2a App \u72ec\u7acb\u8dd1\u8d77\u6765&#xff0c;\u754c\u9762\u3001\u8def\u7531\u3001\u72b6\u6001\u3001\u4ea4\u4e92\u5168\u90e8\u81ea\u7ed9\u81ea\u8db3&#xff0c;\u552f\u4e00\u7684\u7b49\u5f85\u70b9\u2014\u2014\u540e\u7aef\u63a5\u53e3\u2014\u2014\u7528 Mock \u9876\u4e0a\u53bb\u3002 \u8fd9\u7bc7\u6587\u7ae0\u5e26\u4f60\u4ece 0 \u642d\u4e00\u5957\u524d\u7aef API \u5de5\u7a0b&#xff0c;\u8bfb\u5b8c\u4f60\u80fd\u62ff\u5230&#xff1a; \u7edf\u4e00\u7ba1\u7406\u63a5\u53e3\u7684 api\/ \u76ee\u5f55\u4e00\u884c\u4ee3\u7801\u5207\u6362 M\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/93680.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-12T17:32:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812173252-6a7cae44583f9.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/93680.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/93680.html\",\"name\":\"\u540e\u7aef\u63a5\u53e3\u53c8\u53cc\u53d2\u6ca1\u5199\u597d\uff1f3 \u6b65\u642d\u5efa\u524d\u7aef Mock\uff0c\u4ece\u6b64\u544a\u522b\u201c\u50bb\u7b49\u540e\u7aef\u201c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-12T17:32:55+00:00\",\"dateModified\":\"2026-08-12T17:32:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/93680.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/93680.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/93680.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u540e\u7aef\u63a5\u53e3\u53c8\u53cc\u53d2\u6ca1\u5199\u597d\uff1f3 \u6b65\u642d\u5efa\u524d\u7aef Mock\uff0c\u4ece\u6b64\u544a\u522b\u201c\u50bb\u7b49\u540e\u7aef\u201c\"}]},{\"@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":"\u540e\u7aef\u63a5\u53e3\u53c8\u53cc\u53d2\u6ca1\u5199\u597d\uff1f3 \u6b65\u642d\u5efa\u524d\u7aef Mock\uff0c\u4ece\u6b64\u544a\u522b\u201c\u50bb\u7b49\u540e\u7aef\u201c - \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\/93680.html","og_locale":"zh_CN","og_type":"article","og_title":"\u540e\u7aef\u63a5\u53e3\u53c8\u53cc\u53d2\u6ca1\u5199\u597d\uff1f3 \u6b65\u642d\u5efa\u524d\u7aef Mock\uff0c\u4ece\u6b64\u544a\u522b\u201c\u50bb\u7b49\u540e\u7aef\u201c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u300c\u540e\u7aef\u63a5\u53e3\u4e0b\u5468\u624d\u7ed9&#xff0c;\u524d\u7aef\u9875\u9762\u8fd9\u5468\u5c31\u8981\u4ea4\u4ed8\u3002\u300d \u8fd9\u53e5\u8bdd&#xff0c;\u5927\u6982\u662f\u524d\u540e\u7aef\u5206\u79bb\u9879\u76ee\u91cc&#xff0c;\u524d\u7aef\u542c\u5230\u6700\u591a\u6b21\u7684\u5669\u68a6\u5f00\u573a\u3002\u524d\u7aef\u96be\u9053\u53ea\u80fd\u5e72\u7b49&#xff1f;\u4e0d\u7528\u3002 \u524d\u7aef\u5b8c\u5168\u53ef\u4ee5\u5148\u628a\u6574\u4e2a App \u72ec\u7acb\u8dd1\u8d77\u6765&#xff0c;\u754c\u9762\u3001\u8def\u7531\u3001\u72b6\u6001\u3001\u4ea4\u4e92\u5168\u90e8\u81ea\u7ed9\u81ea\u8db3&#xff0c;\u552f\u4e00\u7684\u7b49\u5f85\u70b9\u2014\u2014\u540e\u7aef\u63a5\u53e3\u2014\u2014\u7528 Mock \u9876\u4e0a\u53bb\u3002 \u8fd9\u7bc7\u6587\u7ae0\u5e26\u4f60\u4ece 0 \u642d\u4e00\u5957\u524d\u7aef API \u5de5\u7a0b&#xff0c;\u8bfb\u5b8c\u4f60\u80fd\u62ff\u5230&#xff1a; \u7edf\u4e00\u7ba1\u7406\u63a5\u53e3\u7684 api\/ \u76ee\u5f55\u4e00\u884c\u4ee3\u7801\u5207\u6362 M","og_url":"https:\/\/www.wsisp.com\/helps\/93680.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-12T17:32:55+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812173252-6a7cae44583f9.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/93680.html","url":"https:\/\/www.wsisp.com\/helps\/93680.html","name":"\u540e\u7aef\u63a5\u53e3\u53c8\u53cc\u53d2\u6ca1\u5199\u597d\uff1f3 \u6b65\u642d\u5efa\u524d\u7aef Mock\uff0c\u4ece\u6b64\u544a\u522b\u201c\u50bb\u7b49\u540e\u7aef\u201c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-12T17:32:55+00:00","dateModified":"2026-08-12T17:32:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/93680.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/93680.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/93680.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u540e\u7aef\u63a5\u53e3\u53c8\u53cc\u53d2\u6ca1\u5199\u597d\uff1f3 \u6b65\u642d\u5efa\u524d\u7aef Mock\uff0c\u4ece\u6b64\u544a\u522b\u201c\u50bb\u7b49\u540e\u7aef\u201c"}]},{"@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\/93680","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=93680"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/93680\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/93679"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=93680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=93680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=93680"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=93680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}