{"id":38825,"date":"2025-05-21T10:35:55","date_gmt":"2025-05-21T02:35:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/38825.html"},"modified":"2025-05-21T10:35:55","modified_gmt":"2025-05-21T02:35:55","slug":"react-flow-%e6%95%b0%e6%8d%ae%e6%8c%81%e4%b9%85%e5%8c%96%ef%bc%9adjango-%e5%90%8e%e7%ab%af%e5%ad%98%e5%82%a8%e4%b8%8e%e5%8a%a0%e8%bd%bd%e7%9a%84%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%ef%bc%88%e5%90%ab","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/38825.html","title":{"rendered":"React Flow \u6570\u636e\u6301\u4e45\u5316\uff1aDjango \u540e\u7aef\u5b58\u50a8\u4e0e\u52a0\u8f7d\u7684\u6700\u4f73\u5b9e\u8df5\uff08\u542b\u8be6\u7ec6\u4ee3\u7801\u89e3\u6790\uff09"},"content":{"rendered":"<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5728\u6784\u5efa React Flow \u5e94\u7528\u65f6&#xff0c;\u524d\u7aef\u5448\u73b0\u7684\u8282\u70b9\u4e0e\u8fde\u7ebf\u6784\u6210\u7684\u53ef\u89c6\u5316\u6d41\u7a0b\u53ea\u662f\u51b0\u5c71\u4e00\u89d2&#xff0c;\u5176\u80cc\u540e\u7684\u6570\u636e\u6301\u4e45\u5316\u4e0e\u7075\u6d3b\u8c03\u53d6\u624d\u662f\u786e\u4fdd\u5e94\u7528\u7a33\u5b9a\u8fd0\u884c\u3001\u652f\u6301\u7528\u6237\u6570\u636e\u56de\u6eaf\u4e0e\u534f\u4f5c\u7684\u5173\u952e\u3002\u56e0\u6b64&#xff0c;\u540e\u7aef\u5b58\u50a8\u4e0e\u52a0\u8f7d React Flow \u4fe1\u606f\u7684\u73af\u8282&#xff0c;\u5c31\u5982\u540c\u6574\u4e2a\u5e94\u7528\u7684\u6570\u636e\u4e2d\u67a2&#xff0c;\u5b83\u4e0d\u4ec5\u8981\u9ad8\u6548\u5730\u4fdd\u5b58\u524d\u7aef\u4f20\u9012\u7684\u590d\u6742\u7ed3\u6784\u6570\u636e&#xff0c;\u8fd8\u8981\u5728\u7528\u6237\u4e0b\u6b21\u8bbf\u95ee\u65f6\u7cbe\u51c6\u65e0\u8bef\u5730\u52a0\u8f7d\u8fd8\u539f&#xff0c;\u4ee5\u4fdd\u969c\u7528\u6237\u4f53\u9a8c\u7684\u8fde\u7eed\u6027\u4e0e\u5b8c\u6574\u6027\u3002\u4e0b\u9762\u5c06Django \u540e\u7aef\u4e3a\u4f8b\u8fdb\u884c\u4ecb\u7ecd&#xff0c;\u4e5f\u53ef\u4ee5\u6362\u6210fastapi\u7b49\u5176\u5b83\u540e\u7aef\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Django \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u4e14\u5907\u53d7\u6b22\u8fce\u7684 Python Web \u6846\u67b6&#xff0c;\u65e8\u5728\u5feb\u901f\u642d\u5efa\u9ad8\u8d28\u91cf\u7684 Web \u5e94\u7528\u3002\u5b83\u5185\u7f6e\u4e86\u4e30\u5bcc\u7684\u7ec4\u4ef6\u548c\u5de5\u5177&#xff0c;\u50cf\u81ea\u52a8\u751f\u6210\u7684\u6570\u636e\u5e93\u7ba1\u7406\u3001\u7528\u6237\u8ba4\u8bc1\u7cfb\u7edf\u3001\u8868\u5355\u5904\u7406\u7b49&#xff0c;\u6781\u5927\u5730\u7b80\u5316\u4e86\u5f00\u53d1\u6d41\u7a0b&#xff0c;\u8ba9\u5f00\u53d1\u8005\u80fd\u4e13\u6ce8\u4e8e\u6838\u5fc3\u4e1a\u52a1\u903b\u8f91\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8be5\u6846\u67b6\u91c7\u7528\u4e86\u6a21\u578b &#8211; \u89c6\u56fe &#8211; \u63a7\u5236\u5668&#xff08;MVC&#xff09;\u67b6\u6784\u7684\u53d8\u4f53 \u2014\u2014 \u6a21\u578b &#8211; \u89c6\u56fe &#8211; \u6a21\u677f&#xff08;MVT&#xff09;\u67b6\u6784\u3002\u6a21\u578b\u5c42\u8d1f\u8d23\u4e0e\u6570\u636e\u5e93\u4ea4\u4e92&#xff0c;\u5904\u7406\u6570\u636e\u7684\u5b58\u50a8\u548c\u8bfb\u53d6&#xff1b;\u89c6\u56fe\u5c42\u51b3\u5b9a\u5411\u7528\u6237\u5c55\u793a\u54ea\u4e9b\u6570\u636e&#xff1b;\u6a21\u677f\u5c42\u5219\u4e13\u6ce8\u4e8e\u6570\u636e\u7684\u5448\u73b0\u6837\u5f0f&#xff0c;\u8fd9\u79cd\u5206\u5c42\u8bbe\u8ba1\u4f7f\u4ee3\u7801\u7ed3\u6784\u6e05\u6670&#xff0c;\u4fbf\u4e8e\u7ef4\u62a4\u548c\u6269\u5c55\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u51ed\u501f\u9ad8\u6548\u7684\u5f00\u53d1\u6548\u7387\u3001\u5f3a\u5927\u7684\u5b89\u5168\u6027\u4fdd\u969c&#xff08;\u5982\u9632\u6b62 SQL \u6ce8\u5165\u3001\u8de8\u7ad9\u811a\u672c\u653b\u51fb\u7b49&#xff09;\u4ee5\u53ca\u51fa\u8272\u7684\u53ef\u6269\u5c55\u6027&#xff0c;Django \u5728\u5404\u7c7b Web \u9879\u76ee\u4e2d\u5e7f\u6cdb\u5e94\u7528&#xff0c;\u65e0\u8bba\u662f\u5c0f\u578b\u4e2a\u4eba\u535a\u5ba2&#xff0c;\u8fd8\u662f\u5927\u578b\u4f01\u4e1a\u7ea7\u5e94\u7528&#xff0c;\u90fd\u80fd\u53d1\u6325\u5176\u4f18\u52bf&#xff0c;\u6210\u4e3a\u4f17\u591a\u5f00\u53d1\u8005\u6784\u5efa\u540e\u7aef\u670d\u52a1\u7684\u9996\u9009\u6846\u67b6\u4e4b\u4e00\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Python \u73af\u5883\u53ef\u4f7f\u7528Anaconda \u6216 Miniconda \u8fdb\u884c\u5b89\u88c5&#xff0c;\u76f8\u5173\u6559\u7a0b\u8f83\u591a&#xff0c;\u8fd9\u91cc\u7b80\u5355\u4ecb\u7ecd\u91c7\u7528 Miniconda \u7684\u5b89\u88c5\u65b9\u5f0f\u3002\u5176\u5b89\u88c5\u5305\u4e0b\u8f7d\u8def\u5f84\u4e3a https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/miniconda\/\u3002Windows \u4e2d\u4e0b\u8f7d exe \u6587\u4ef6\u540e\u76f4\u63a5\u53cc\u51fb\u5b89\u88c5\u5373\u53ef&#xff0c;\u5b89\u88c5\u6700\u540e\u4e00\u6b65\u5c3d\u91cf\u52fe\u9009\u73af\u5883\u53d8\u91cf\u5230 Path \u4e2d\u3002 Linux \u5b89\u88c5\u6b65\u9aa4\u5982\u4e0b&#xff1a;<\/p>\n<p> \u4e0b\u8f7d\u9ed8\u8ba4\u73af\u5883\u4e3a Python 3.10 \u7684\u7248\u672c<br \/>\nwget https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/miniconda\/Miniconda3-py310_23.1.0-1-Linux-x86_64.sh<br \/>\nbash Miniconda3-py310_23.1.0-1-Linux-x86_64.sh<br \/>\n# \u4e00\u76f4\u6309\u56de\u8f66&#xff08;Enter&#xff09;\u952e\u786e\u8ba4&#xff0c;\u5012\u6570\u7b2c3\u6b65\u4e0e\u6700\u540e1\u6b65\u8f93\u5165\u201cyes\u201d&#xff0c;\u5176\u4ed6\u5747\u6309\u56de\u8f66<br \/>\nsource ~\/.bashrc <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u672c\u8282\u793a\u4f8b\u7684\u603b\u4f53\u76ee\u5f55\u7ed3\u6784\u5982\u4e0b\u6240\u793a&#xff0c;\u5176\u4e2d backend \u76ee\u5f55\u5b58\u50a8\u4e86\u5168\u90e8\u540e\u7aef\u6587\u4ef6&#xff0c;frontend \u5219\u5b58\u50a8\u4e86\u524d\u7aef\u9879\u76ee\u3002<\/p>\n<p>\u9879\u76ee\u7ed3\u6784<br \/>\nexp07-backend\/<br \/>\n\u251c\u2500\u2500 backend\/          # Django\u9879\u76ee<br \/>\n\u2502   \u251c\u2500\u2500 flow\/         # \u5e94\u7528\u76ee\u5f55<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 migrations\/<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 __init__.py<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 admin.py<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 apps.py<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 models.py<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 serializers.py<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 views.py<br \/>\n\u2502   \u2502   \u2514\u2500\u2500 tests.py<br \/>\n\u2502   \u251c\u2500\u2500 backend\/<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 __init__.py<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 asgi.py<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 settings.py<br \/>\n\u2502   \u2502   \u251c\u2500\u2500 urls.py<br \/>\n\u2502   \u2502   \u2514\u2500\u2500 wsgi.py<br \/>\n\u2502   \u2514\u2500\u2500 manage.py<br \/>\n\u2514\u2500\u2500 frontend\/         # React\u9879\u76ee<br \/>\n    \u251c\u2500\u2500 src\/<br \/>\n    \u2502   \u2514\u2500\u2500 App.js    # \u5305\u542b\u4e4b\u524d\u7684React\u4ee3\u7801<br \/>\n    \u251c\u2500\u2500 package.json<br \/>\n    \u2514\u2500\u2500 public\/ <\/p>\n<h2 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">1\u00a0\u9879\u76ee\u642d\u5efa\u4e0e\u57fa\u7840\u914d\u7f6e<\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u9996\u5148&#xff0c;\u521b\u5efa\u9879\u76ee\u76ee\u5f55\u5e76\u8fdb\u5165&#xff0c;\u901a\u8fc7\u00a0pip\u00a0\u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\u5e93&#xff0c;\u524d\u63d0\u662f\u5df2\u7ecf\u521b\u5efa\u5e76\u6fc0\u6d3b\u4e86 python \u73af\u5883\u3002<\/p>\n<p>mkdir exp07-backend<br \/>\ncd exp07-backend<br \/>\npip install django djangorestframework django-cors-headers  -i http:\/\/mirrors.aliyun.com\/pypi\/simple\/ &#8211;trusted-host mirrors.aliyun.com <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4f7f\u7528\u00a0django-admin\u00a0\u547d\u4ee4\u521b\u5efa Django \u9879\u76ee\u00a0backend&#xff0c;\u5e76\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u521b\u5efa\u5e94\u7528\u00a0flow&#xff1a;<\/p>\n<p>django-admin startproject backend<br \/>\ncd backend<br \/>\npython manage.py startapp flow <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7136\u540e&#xff0c;\u5728backend\/settings.py\u6587\u4ef6\u4e2d\u914d\u7f6e\u5b89\u88c5\u7684\u5e94\u7528\u548c\u4e2d\u95f4\u4ef6&#xff0c;\u542f\u7528rest_framework\u3001corsheaders\u548cflow\u5e94\u7528&#xff0c;\u5e76\u6dfb\u52a0 CORS \u8de8\u57df\u914d\u7f6e\u548c REST \u6846\u67b6\u6743\u9650\u914d\u7f6e&#xff1a;<\/p>\n<p>INSTALLED_APPS &#061; [<br \/>\n   &#8230;<br \/>\n   &#039;rest_framework&#039;,<br \/>\n   &#039;corsheaders&#039;,<br \/>\n   &#039;flow.apps.FlowConfig&#039;<br \/>\n]<\/p>\n<p>MIDDLEWARE &#061; [<br \/>\n   &#8230;<br \/>\n    &#039;corsheaders.middleware.CorsMiddleware&#039;,<br \/>\n]<\/p>\n<p># \u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e<br \/>\nCORS_ALLOW_ALL_ORIGINS &#061; True  # \u5f00\u53d1\u73af\u5883\u4e34\u65f6\u914d\u7f6e<br \/>\nREST_FRAMEWORK &#061; {<br \/>\n    &#039;DEFAULT_PERMISSION_CLASSES&#039;: [<br \/>\n       &#039;rest_framework.permissions.AllowAny&#039;<br \/>\n    ]<br \/>\n} <\/p>\n<h2 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">2\u00a0\u5b9a\u4e49\u6570\u636e\u7c7b\u578b<\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5728\u00a0flow\/models.py\u00a0\u6587\u4ef6\u4e2d&#xff0c;\u5b9a\u4e49\u4e24\u4e2a\u6a21\u578b\u7c7b\u00a0FlowNode\u00a0\u548c\u00a0FlowEdge&#xff0c;\u5373\u6570\u636e\u5e93\u8868\u7ed3\u6784&#xff0c;\u5206\u522b\u7528\u4e8e\u5b58\u50a8 React Flow \u4e2d\u7684\u8282\u70b9\u548c\u8fb9\u7684\u4fe1\u606f&#xff1a;<\/p>\n<p>from django.db import models<\/p>\n<p>class FlowNode(models.Model):<br \/>\n    node_id &#061; models.CharField(max_length&#061;255, unique&#061;True)<br \/>\n    type &#061; models.CharField(max_length&#061;50)<br \/>\n    position_x &#061; models.FloatField()<br \/>\n    position_y &#061; models.FloatField()<br \/>\n    data &#061; models.JSONField()<\/p>\n<p>    def __str__(self):<br \/>\n        return f&#034;{self.type} Node ({self.node_id})&#034;<\/p>\n<p>class FlowEdge(models.Model):<br \/>\n    edge_id &#061; models.CharField(max_length&#061;255, unique&#061;True)<br \/>\n    source &#061; models.CharField(max_length&#061;255)<br \/>\n    target &#061; models.CharField(max_length&#061;255)<br \/>\n    source_handle &#061; models.CharField(max_length&#061;50)<br \/>\n    target_handle &#061; models.CharField(max_length&#061;50)<\/p>\n<p>    def __str__(self):<br \/>\n        return f&#034;Edge {self.source}-&gt;{self.target}&#034; <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5b9a\u4e49\u597d\u6a21\u578b\u540e&#xff0c;\u6267\u884c\u6570\u636e\u5e93\u8fc1\u79fb\u547d\u4ee4&#xff0c;\u5c06\u6a21\u578b\u6620\u5c04\u5230\u6570\u636e\u5e93\u8868&#xff1a;<\/p>\n<p>python manage.py makemigrations<br \/>\npython manage.py migrate <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6267\u884c\u7ed3\u679c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"217\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023553-682d3c09e32a3.png\" width=\"440\" \/><\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:center\">\u56fe1 \u521b\u5efa\u6570\u636e\u5e93\u8868<\/p>\n<h2 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">3\u00a0\u521b\u5efa\u5e8f\u5217\u5316\u5668<\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5728 flow\/serializers.py \u6587\u4ef6\u4e2d&#xff0c;\u57fa\u4e8e rest_framework \u7684 ModelSerializer \u521b\u5efaFlowNodeSerializer \u548c FlowEdgeSerializer&#xff0c;\u7528\u4e8e\u5c06\u6a21\u578b\u5b9e\u4f8b\u8f6c\u6362\u4e3a JSON \u683c\u5f0f\u6570\u636e&#xff0c;\u4ee5\u53ca\u5c06 JSON \u6570\u636e\u53cd\u5e8f\u5217\u5316\u4e3a\u6a21\u578b\u5b9e\u4f8b&#xff1a;<\/p>\n<p>from rest_framework import serializers<br \/>\nfrom .models import FlowNode, FlowEdge<\/p>\n<p>class FlowNodeSerializer(serializers.ModelSerializer):<br \/>\n    class Meta:<br \/>\n        model &#061; FlowNode<br \/>\n        fields &#061; [&#039;node_id&#039;, &#039;type&#039;, &#039;position_x&#039;, &#039;position_y&#039;, &#039;data&#039;]<\/p>\n<p>class FlowEdgeSerializer(serializers.ModelSerializer):<br \/>\n    class Meta:<br \/>\n        model &#061; FlowEdge<br \/>\n        fields &#061; [&#039;edge_id&#039;,&#039;source&#039;, &#039;target&#039;,&#039;source_handle&#039;, &#039;target_handle&#039;] <\/p>\n<h2 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">4\u00a0\u7f16\u5199\u89c6\u56fe<\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5728\u00a0flow\/views.py\u00a0\u6587\u4ef6\u4e2d&#xff0c;\u521b\u5efa\u00a0FlowDataAPI\u00a0\u89c6\u56fe\u7c7b&#xff0c;\u7ee7\u627f\u81ea\u00a0APIView&#xff0c;\u5206\u522b\u5b9e\u73b0\u00a0GET \u548c\u00a0POST \u65b9\u6cd5&#xff0c;\u7528\u4e8e\u5904\u7406\u83b7\u53d6\u548c\u4fdd\u5b58 React Flow \u6570\u636e\u7684\u8bf7\u6c42&#xff1a;<\/p>\n<p>from rest_framework.response import Response<br \/>\nfrom rest_framework.views import APIView<br \/>\nfrom .models import FlowNode, FlowEdge<br \/>\nfrom .serializers import FlowNodeSerializer, FlowEdgeSerializer<\/p>\n<p>class FlowDataAPI(APIView):<br \/>\n    def get(self, request):<br \/>\n        nodes &#061; FlowNode.objects.all()<br \/>\n        edges &#061; FlowEdge.objects.all()<\/p>\n<p>        node_serializer &#061; FlowNodeSerializer(nodes, many&#061;True)<br \/>\n        edge_serializer &#061; FlowEdgeSerializer(edges, many&#061;True)<\/p>\n<p>        # \u9700\u8981\u628anode_id\u5b57\u6bb5\u6539\u4e3aid\u8fd4\u56de<br \/>\n        for node in node_serializer.data:<br \/>\n            node[&#039;id&#039;] &#061; node[&#039;node_id&#039;]<br \/>\n            del node[&#039;node_id&#039;]<br \/>\n        return Response({<br \/>\n            &#039;nodes&#039;: node_serializer.data,<br \/>\n            &#039;edges&#039;: edge_serializer.data<br \/>\n        })<\/p>\n<p>    def post(self, request):<br \/>\n        # \u6e05\u9664\u65e7\u6570\u636e<br \/>\n        FlowNode.objects.all().delete()<br \/>\n        FlowEdge.objects.all().delete()<\/p>\n<p>        # \u4fdd\u5b58\u65b0\u8282\u70b9<br \/>\n        nodes_data &#061; request.data.get(&#039;nodes&#039;, [])<br \/>\n        for node in nodes_data:<br \/>\n            FlowNode.objects.create(<br \/>\n                node_id&#061;node[&#039;node_id&#039;],<br \/>\n                type&#061;node[&#039;type&#039;],<br \/>\n                position_x&#061;node[&#039;position_x&#039;],<br \/>\n                position_y&#061;node[&#039;position_y&#039;],<br \/>\n                data&#061;node[&#039;data&#039;]<br \/>\n            )<\/p>\n<p>        # \u4fdd\u5b58\u65b0\u8fb9<br \/>\n        edges_data &#061; request.data.get(&#039;edges&#039;, [])<br \/>\n        for edge in edges_data:<br \/>\n            FlowEdge.objects.create(<br \/>\n                edge_id&#061;edge[&#039;edge_id&#039;],<br \/>\n                source&#061;edge[&#039;source&#039;],<br \/>\n                target&#061;edge[&#039;target&#039;],<br \/>\n                source_handle&#061;edge[&#039;source_handle&#039;],<br \/>\n                target_handle&#061;edge[&#039;target_handle&#039;]<br \/>\n            )<\/p>\n<p>        return Response({&#039;status&#039;:&#039;success&#039;}, status&#061;201) <\/p>\n<h2 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">5\u00a0\u914d\u7f6e URL \u8def\u7531<\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5728\u00a0backend\/urls.py\u00a0\u6587\u4ef6\u4e2d&#xff0c;\u914d\u7f6e URL \u8def\u7531&#xff0c;\u5c06\u00a0\/api\/flow-data\/\u00a0\u8def\u5f84\u6620\u5c04\u5230\u00a0FlowDataAPI\u00a0\u89c6\u56fe&#xff1a;<\/p>\n<p>from django.contrib import admin<br \/>\nfrom django.urls import path<br \/>\nfrom flow.views import FlowDataAPI<\/p>\n<p>urlpatterns &#061; [<br \/>\n    path(&#039;admin\/&#039;, admin.site.urls),<br \/>\n    path(&#039;api\/flow-data\/&#039;, FlowDataAPI.as_view()),<br \/>\n] <\/p>\n<h2 style=\"margin-left:0.0001pt;margin-right:0px;text-align:justify\">6\u00a0\u542f\u52a8\u540e\u7aef\u4e0e\u6d4b\u8bd5<\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5728backend\u76ee\u5f55\u4e0b&#xff0c;\u6267\u884c\u00a0python manage.py runserver\u00a0\u547d\u4ee4\u542f\u52a8 Django \u540e\u7aef&#xff0c;\u8fd0\u884c\u7ed3\u679c\u5982\u4e0b\u56fe\u6240\u793a\u3002\u9ed8\u8ba4\u540e\u7aef\u542f\u52a8\u7aef\u53e3\u4e3a 8000&#xff0c;\u4e5f\u53ef\u4f7f\u7528 python manage.py runserver 0.0.0.0:8888 \u66f4\u6362\u7aef\u53e3\u4e3a 8888\u3002<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"107\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023554-682d3c0a01aef.png\" width=\"523\" \/><\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:center\">\u56fe2 \u542f\u52a8\u540e\u7aef<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u670d\u52a1\u542f\u52a8\u540e\u6211\u4eec\u5373\u53ef\u901a\u8fc7 curl \u547d\u4ee4\u6216\u5176\u5b83 HTTP \u5de5\u5177\u6216\u7a0b\u5e8f\u5bf9 API \u8fdb\u884c\u6d4b\u8bd5\u3002\u53d1\u9001\u6570\u636e&#xff08;\u4fdd\u5b58\u5230\u540e\u7aef&#xff09;\u91c7\u7528 POST \u65b9\u5f0f&#xff0c;\u6210\u529f\u5219\u8fd4\u56de {&#034;status&#034;:&#034;success&#034;}\u3002<\/p>\n<p>curl -X POST http:\/\/localhost:8000\/api\/flow-data\/ \\\\<br \/>\n  -H &#034;Content-Type: application\/json&#034; \\\\<br \/>\n  -d &#039;{<br \/>\n    &#034;nodes&#034;: [<br \/>\n      {<br \/>\n        &#034;node_id&#034;: &#034;1&#034;,<br \/>\n        &#034;type&#034;: &#034;inputNode&#034;,<br \/>\n        &#034;position_x&#034;: 0,<br \/>\n        &#034;position_y&#034;: 0,<br \/>\n        &#034;data&#034;: {<br \/>\n          &#034;label&#034;: &#034;\u8f93\u5165\u8282\u70b9&#034;,<br \/>\n          &#034;color&#034;: &#034;#ffcccb&#034;,<br \/>\n          &#034;value&#034;: 10<br \/>\n        }<br \/>\n      },<br \/>\n      {<br \/>\n        &#034;node_id&#034;: &#034;2&#034;,<br \/>\n        &#034;type&#034;: &#034;ioNode&#034;,<br \/>\n        &#034;position_x&#034;: 200,<br \/>\n        &#034;position_y&#034;: 0,<br \/>\n        &#034;data&#034;: {<br \/>\n          &#034;label&#034;: &#034;\u4e2d\u95f4\u8282\u70b9&#034;,<br \/>\n          &#034;color&#034;: &#034;#90EE90&#034;,<br \/>\n          &#034;value&#034;: 2<br \/>\n        }<br \/>\n      },<br \/>\n      {<br \/>\n        &#034;node_id&#034;: &#034;3&#034;,<br \/>\n        &#034;type&#034;: &#034;outputNode&#034;,<br \/>\n        &#034;position_x&#034;: 400,<br \/>\n        &#034;position_y&#034;: 0,<br \/>\n        &#034;data&#034;: {<br \/>\n          &#034;label&#034;: &#034;\u8f93\u51fa\u8282\u70b9&#034;,<br \/>\n          &#034;color&#034;: &#034;#87CEEB&#034;,<br \/>\n          &#034;result&#034;: 20<br \/>\n        }<br \/>\n      }<br \/>\n    ],<br \/>\n    &#034;edges&#034;: [<br \/>\n      {<br \/>\n        &#034;edge_id&#034;: &#034;e1-2&#034;,<br \/>\n        &#034;source&#034;: &#034;1&#034;,<br \/>\n        &#034;target&#034;: &#034;2&#034;,<br \/>\n        &#034;source_handle&#034;: &#034;right&#034;,<br \/>\n        &#034;target_handle&#034;: &#034;left&#034;<br \/>\n      },<br \/>\n      {<br \/>\n        &#034;edge_id&#034;: &#034;e2-3&#034;,<br \/>\n        &#034;source&#034;: &#034;2&#034;,<br \/>\n        &#034;target&#034;: &#034;3&#034;,<br \/>\n        &#034;source_handle&#034;: &#034;right&#034;,<br \/>\n        &#034;target_handle&#034;: &#034;top&#034;<br \/>\n      }<br \/>\n    ]<br \/>\n  }&#039; <\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u83b7\u53d6\u6570\u636e&#xff08;\u4ece\u540e\u7aef\u52a0\u8f7d&#xff09;\u547d\u4ee4\u5982\u4e0b\u3002<\/p>\n<p>curl http:\/\/localhost:8000\/api\/flow-data\/ <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"170\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023554-682d3c0a1005a.png\" width=\"554\" \/><\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:center\">\u56fe3 \u540e\u7aef\u52a0\u8f7d\u6570\u636e<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6211\u4eec\u4e5f\u53ef\u76f4\u63a5\u5728\u7f51\u9875\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165 http:\/\/localhost:8000\/api\/flow-data\/ \u8fdb\u884c\u67e5\u770b&#xff0c;\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"255\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023554-682d3c0a20f45.png\" width=\"548\" \/><\/p>\n<p style=\"margin-left:0.0001pt;margin-right:0px;text-align:center\">\u56fe4 \u6d4f\u89c8\u5668\u67e5\u770b<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u81f3\u6b64&#xff0c;\u57fa\u4e8e Django \u540e\u7aef\u7684 React Flow \u4fe1\u606f\u5b58\u50a8\u4e0e\u52a0\u8f7d\u529f\u80fd\u5df2\u5b8c\u6574\u5b9e\u73b0\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d&#xff0c;\u8fd8\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8fdb\u4e00\u6b65\u4f18\u5316\u4ee3\u7801&#xff0c;\u5982\u6dfb\u52a0\u6570\u636e\u9a8c\u8bc1\u3001\u6743\u9650\u63a7\u5236\u3001\u65e5\u5fd7\u8bb0\u5f55\u7b49\u529f\u80fd\u3002<\/p>\n<h2 style=\"background-color:transparent\">\u00a0\u00a0\u00a0\u7acb\u5373\u5173\u6ce8\u83b7\u53d6\u6700\u65b0\u52a8\u6001<\/h2>\n<p>\u70b9\u51fb\u8ba2\u9605\u300aReact Agent \u5f00\u53d1\u4e13\u680f\u300b&#xff0c;\u6bcf\u5468\u83b7\u53d6\u667a\u80fd\u4f53\u5f00\u53d1\u6df1\u5ea6\u6559\u7a0b\u3002\u9879\u76ee\u4ee3\u7801\u6301\u7eed\u66f4\u65b0\u81f3React Agent \u5f00\u6e90\u4ed3\u5e93&#xff0c;\u6b22\u8fce Star \u83b7\u53d6\u5b9e\u65f6\u66f4\u65b0\u901a\u77e5&#xff01;FGAI \u4eba\u5de5\u667a\u80fd\u5e73\u53f0&#xff1a;FGAI \u4eba\u5de5\u667a\u80fd\u5e73\u53f0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb731\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u672c\u4e13\u680f\u5c06\u7531\u6d45\u5165\u6df1\u9010\u6b65\u89e3\u6790AI\u667a\u80fd\u4f53\u7684\u6838\u5fc3\u6982\u5ff5\uff0c\u7ed3\u5408 React Flow \u6253\u9020\u53ef\u89c6\u5316 AI \u5de5\u4f5c\u6d41\uff0c\u5e76\u901a\u8fc7\u5b9e\u4f8b\u6765\u52a0\u6df1\u6280\u672f\u7406\u89e3\uff0c\u9644\u6e90\u7801\u4e0e\u8be6\u7ec6\u89e3\u6790\u3002\u9879\u76ee\u5730\u5740\uff1ahttps:\/\/gitee.com\/fgai\/react-agent\u3002<\/p>\n","protected":false},"author":2,"featured_media":38821,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[890,3445,3446,3448,3447,2983],"topic":[],"class_list":["post-38825","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-django","tag-react-agent-ai-","tag-react-flow","tag-3448","tag-3447","tag-2983"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>React Flow \u6570\u636e\u6301\u4e45\u5316\uff1aDjango \u540e\u7aef\u5b58\u50a8\u4e0e\u52a0\u8f7d\u7684\u6700\u4f73\u5b9e\u8df5\uff08\u542b\u8be6\u7ec6\u4ee3\u7801\u89e3\u6790\uff09 - \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\/38825.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"React Flow \u6570\u636e\u6301\u4e45\u5316\uff1aDjango \u540e\u7aef\u5b58\u50a8\u4e0e\u52a0\u8f7d\u7684\u6700\u4f73\u5b9e\u8df5\uff08\u542b\u8be6\u7ec6\u4ee3\u7801\u89e3\u6790\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb731\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u672c\u4e13\u680f\u5c06\u7531\u6d45\u5165\u6df1\u9010\u6b65\u89e3\u6790AI\u667a\u80fd\u4f53\u7684\u6838\u5fc3\u6982\u5ff5\uff0c\u7ed3\u5408 React Flow \u6253\u9020\u53ef\u89c6\u5316 AI \u5de5\u4f5c\u6d41\uff0c\u5e76\u901a\u8fc7\u5b9e\u4f8b\u6765\u52a0\u6df1\u6280\u672f\u7406\u89e3\uff0c\u9644\u6e90\u7801\u4e0e\u8be6\u7ec6\u89e3\u6790\u3002\u9879\u76ee\u5730\u5740\uff1ahttps:\/\/gitee.com\/fgai\/react-agent\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/38825.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:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023553-682d3c09e32a3.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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38825.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/38825.html\",\"name\":\"React Flow \u6570\u636e\u6301\u4e45\u5316\uff1aDjango \u540e\u7aef\u5b58\u50a8\u4e0e\u52a0\u8f7d\u7684\u6700\u4f73\u5b9e\u8df5\uff08\u542b\u8be6\u7ec6\u4ee3\u7801\u89e3\u6790\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-21T02:35:55+00:00\",\"dateModified\":\"2025-05-21T02:35:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/38825.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/38825.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/38825.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"React Flow \u6570\u636e\u6301\u4e45\u5316\uff1aDjango \u540e\u7aef\u5b58\u50a8\u4e0e\u52a0\u8f7d\u7684\u6700\u4f73\u5b9e\u8df5\uff08\u542b\u8be6\u7ec6\u4ee3\u7801\u89e3\u6790\uff09\"}]},{\"@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":"React Flow \u6570\u636e\u6301\u4e45\u5316\uff1aDjango \u540e\u7aef\u5b58\u50a8\u4e0e\u52a0\u8f7d\u7684\u6700\u4f73\u5b9e\u8df5\uff08\u542b\u8be6\u7ec6\u4ee3\u7801\u89e3\u6790\uff09 - \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\/38825.html","og_locale":"zh_CN","og_type":"article","og_title":"React Flow \u6570\u636e\u6301\u4e45\u5316\uff1aDjango \u540e\u7aef\u5b58\u50a8\u4e0e\u52a0\u8f7d\u7684\u6700\u4f73\u5b9e\u8df5\uff08\u542b\u8be6\u7ec6\u4ee3\u7801\u89e3\u6790\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb731\u6b21\uff0c\u70b9\u8d5e15\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u672c\u4e13\u680f\u5c06\u7531\u6d45\u5165\u6df1\u9010\u6b65\u89e3\u6790AI\u667a\u80fd\u4f53\u7684\u6838\u5fc3\u6982\u5ff5\uff0c\u7ed3\u5408 React Flow \u6253\u9020\u53ef\u89c6\u5316 AI \u5de5\u4f5c\u6d41\uff0c\u5e76\u901a\u8fc7\u5b9e\u4f8b\u6765\u52a0\u6df1\u6280\u672f\u7406\u89e3\uff0c\u9644\u6e90\u7801\u4e0e\u8be6\u7ec6\u89e3\u6790\u3002\u9879\u76ee\u5730\u5740\uff1ahttps:\/\/gitee.com\/fgai\/react-agent\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/38825.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-21T02:35:55+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250521023553-682d3c09e32a3.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/38825.html","url":"https:\/\/www.wsisp.com\/helps\/38825.html","name":"React Flow \u6570\u636e\u6301\u4e45\u5316\uff1aDjango \u540e\u7aef\u5b58\u50a8\u4e0e\u52a0\u8f7d\u7684\u6700\u4f73\u5b9e\u8df5\uff08\u542b\u8be6\u7ec6\u4ee3\u7801\u89e3\u6790\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-21T02:35:55+00:00","dateModified":"2025-05-21T02:35:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/38825.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/38825.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/38825.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"React Flow \u6570\u636e\u6301\u4e45\u5316\uff1aDjango \u540e\u7aef\u5b58\u50a8\u4e0e\u52a0\u8f7d\u7684\u6700\u4f73\u5b9e\u8df5\uff08\u542b\u8be6\u7ec6\u4ee3\u7801\u89e3\u6790\uff09"}]},{"@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\/38825","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=38825"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/38825\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/38821"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=38825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=38825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=38825"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=38825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}