diff --git a/client/.env.production b/client/.env.production index 9b8874a..8802f8c 100644 --- a/client/.env.production +++ b/client/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = 'http://testsearch.ctc.ac.cn:8000/api' +VUE_APP_BASE_API = 'https://testsearch.ctc.ac.cn/api' diff --git a/client_mp/pages/subtask/subtaskdetail.vue b/client_mp/pages/subtask/subtaskdetail.vue index e22e13b..d3b722a 100644 --- a/client_mp/pages/subtask/subtaskdetail.vue +++ b/client_mp/pages/subtask/subtaskdetail.vue @@ -23,7 +23,7 @@ {{subtask.members.length}} - + diff --git a/server/apps/quality/urls.py b/server/apps/quality/urls.py index 3477bf1..b2db3df 100644 --- a/server/apps/quality/urls.py +++ b/server/apps/quality/urls.py @@ -1,6 +1,6 @@ from django.urls import path, include from rest_framework import routers -from .views import InspectItemViewSet, InspectTaskViewSet, SubtaskViewSet, InspectRecordViewSet, InspectDeptViewSet +from .views import InspectItemViewSet, InspectTaskViewSet, InspectTemplateViewSet, SubtaskViewSet, InspectRecordViewSet, InspectDeptViewSet, InspectTemplate router = routers.DefaultRouter() router.register('inspectitem', InspectItemViewSet, basename="inspectitem") @@ -8,6 +8,7 @@ router.register('inspecttask', InspectTaskViewSet, basename="inspecttask") router.register('subinspecttask', SubtaskViewSet, basename="subinspecttask") router.register('inspectrecord', InspectRecordViewSet, basename='inspectrecord') router.register('inspectdept', InspectDeptViewSet, basename='inspectdept') +router.register('inspecttemplate', InspectTemplateViewSet, basename='inspecttemplate') urlpatterns = [ path('', include(router.urls)) ] \ No newline at end of file