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)