Ver Fonte

合并周玮璐代码

Johnson há 7 anos atrás
pai
commit
498566fd00
2 ficheiros alterados com 7 adições e 6 exclusões
  1. 5 4
      src/views/teacher/Code/detail.vue
  2. 2 2
      vue.config.js

+ 5 - 4
src/views/teacher/Code/detail.vue

@@ -174,18 +174,19 @@ export default {
     PageSectionLoading
   },
   mounted() {
-    this.codeId = this.$route.params;
+    const { codeId } = this.$route.params;
+    this.codeId = codeId;
     this.loadingUncommittedGroups = true;
     this.loadingCommittedGroups = true;
-    getCodeAssignmentByTeacher(this.codeId).then(res => {
+    getCodeAssignmentByTeacher(codeId).then(res => {
       this.problemInfo = res.data.problem;
     });
-    getCodeProcedureListByCodeId(this.codeId).then(res => {
+    getCodeProcedureListByCodeId(codeId).then(res => {
       this.codeProcedureList = res.data;
       this.submitInfo.yes = "已提交:" + this.codeProcedureList.length;
       this.loadingCommittedGroups = false;
     });
-    getUnsubmittedCodeGroupsList(this.codeId).then(res => {
+    getUnsubmittedCodeGroupsList(codeId).then(res => {
       this.unsubmitedGroups = res.data;
       this.submitInfo.no = "未提交:" + this.unsubmitedGroups.length;
       this.loadingUncommittedGroups = false;

+ 2 - 2
vue.config.js

@@ -2,8 +2,8 @@ module.exports = {
   devServer: {
     proxy: {
       "^/api": {
-        target: "http://localhost:4000/",
-        // target: "http://10.1.2.2:8080/",
+        // target: "http://localhost:4000/",
+        target: "http://10.1.1.198:8080/",
         ws: true,
         changeOrigin: true
       }