This commit is contained in:
2026-03-27 06:46:32 +08:00
parent e28b566345
commit 2920abbe17
2 changed files with 25 additions and 21 deletions
+24 -21
View File
@@ -4,27 +4,9 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="a7465ceb-8d86-4d89-899e-8242cccf605d" name="更改" comment=""> <list default="true" id="a7465ceb-8d86-4d89-899e-8242cccf605d" name="更改" comment="test">
<change afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/Pipfile" afterDir="false" />
<change afterPath="$PROJECT_DIR$/Pipfile.lock" afterDir="false" />
<change afterPath="$PROJECT_DIR$/api/urls.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/api/views/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/app/urls.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/user/urls.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/.gitignore" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/.name" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/chunyu_project.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/chunyu_project.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/inspectionProfiles/Project_Default.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/app/apps.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/apps.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/models.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/models.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/tests.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/tests.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/chunyu_project/asgi.py" beforeDir="false" afterPath="$PROJECT_DIR$/chunyu_project/asgi.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/chunyu_project/settings.py" beforeDir="false" afterPath="$PROJECT_DIR$/chunyu_project/settings.py" afterDir="false" /> <change beforePath="$PROJECT_DIR$/chunyu_project/settings.py" beforeDir="false" afterPath="$PROJECT_DIR$/chunyu_project/settings.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/chunyu_project/urls.py" beforeDir="false" afterPath="$PROJECT_DIR$/chunyu_project/urls.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/chunyu_project/wsgi.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/db.sqlite3" beforeDir="false" afterPath="$PROJECT_DIR$/api/views/GetIPDataView.py" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -146,13 +128,34 @@
<option name="presentableId" value="Default" /> <option name="presentableId" value="Default" />
<updated>1774436691939</updated> <updated>1774436691939</updated>
<workItem from="1774436692980" duration="11637000" /> <workItem from="1774436692980" duration="11637000" />
<workItem from="1774474993123" duration="3364000" /> <workItem from="1774474993123" duration="10150000" />
</task> </task>
<task id="LOCAL-00001" summary="test">
<option name="closed" value="true" />
<created>1774552086610</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1774552086610</updated>
</task>
<task id="LOCAL-00002" summary="test">
<option name="closed" value="true" />
<created>1774552113802</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1774552113802</updated>
</task>
<option name="localTasksCounter" value="3" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" /> <option name="version" value="3" />
</component> </component>
<component name="VcsManagerConfiguration">
<MESSAGE value="test" />
<option name="LAST_COMMIT_MESSAGE" value="test" />
</component>
<component name="com.intellij.coverage.CoverageDataManagerImpl"> <component name="com.intellij.coverage.CoverageDataManagerImpl">
<SUITE FILE_PATH="coverage/chunyu_project$tests.coverage" NAME="tests 覆盖结果" MODIFIED="1774462107469" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/app" /> <SUITE FILE_PATH="coverage/chunyu_project$tests.coverage" NAME="tests 覆盖结果" MODIFIED="1774462107469" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/app" />
</component> </component>
+1
View File
@@ -67,6 +67,7 @@ ALLOWED_HOSTS = ["*"]
CORS_ALLOWED_ORIGINS = [ CORS_ALLOWED_ORIGINS = [
"http://localhost:3000", # 例如:您的React/Vue开发服务器 "http://localhost:3000", # 例如:您的React/Vue开发服务器
"http://127.0.0.1:3000", "http://127.0.0.1:3000",
"*"
] ]
# CORS设置 # CORS设置