From 1a5ce792fe17724fcd4e3d39b5c9f568d0ff2128 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 24 Mar 2020 10:07:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E5=90=8E=E7=AB=AF=E5=88=86=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_client/.env.development | 2 +- test_client/.env.production | 2 +- test_server/server/urls.py | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test_client/.env.development b/test_client/.env.development index f67b802..0c9b7ed 100644 --- a/test_client/.env.development +++ b/test_client/.env.development @@ -2,7 +2,7 @@ ENV = 'development' # base api -VUE_APP_BASE_API = '/api' +VUE_APP_BASE_API = 'http://localhost:8000' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, # to control whether the babel-plugin-dynamic-import-node plugin is enabled. diff --git a/test_client/.env.production b/test_client/.env.production index be5dd8e..7c60998 100644 --- a/test_client/.env.production +++ b/test_client/.env.production @@ -3,4 +3,4 @@ ENV = 'production' # base api # VUE_APP_BASE_API = '/prod-api' -VUE_APP_BASE_API = '/api' +VUE_APP_BASE_API = 'https://apitest.ctcshe.com' diff --git a/test_server/server/urls.py b/test_server/server/urls.py index 2fb404d..fc1b2b2 100644 --- a/test_server/server/urls.py +++ b/test_server/server/urls.py @@ -24,15 +24,15 @@ from utils.file import UploadFileView urlpatterns = [ - path('api/rbac/', include('rbac.urls')), - path('api/crm/', include('crm.urls')), - path('api/question/', include('question.urls')), - path('api/examtest/', include('examtest.urls')), - path('api/token/', obtain_jwt_token), - path('api/token/refresh/', refresh_jwt_token), - path('api/token/verify/', verify_jwt_token), - path('api/token/remove/', UserLogoutView.as_view()), - path('api/uploadfile/', UploadFileView.as_view()), + path('rbac/', include('rbac.urls')), + path('crm/', include('crm.urls')), + path('question/', include('question.urls')), + path('examtest/', include('examtest.urls')), + path('token/', obtain_jwt_token), + path('token/refresh/', refresh_jwt_token), + path('token/verify/', verify_jwt_token), + path('token/remove/', UserLogoutView.as_view()), + path('uploadfile/', UploadFileView.as_view()), path('admin/', admin.site.urls), path('docs/', include_docs_urls(title="API文档",authentication_classes=[], permission_classes=[])), ]+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)