소스 검색

修复id问题

1
mo 3 년 전
부모
커밋
ee656252f8
2개의 변경된 파일5개의 추가작업 그리고 7개의 파일을 삭제
  1. 3 5
      src/views/teachManager/modals/addTeach.vue
  2. 2 2
      vue.config.js

+ 3 - 5
src/views/teachManager/modals/addTeach.vue

@@ -194,7 +194,6 @@ export default {
       }
     },
     appendItem(data) {
-      console.log(data);
       this.$prompt("请输入教材名称", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -265,13 +264,13 @@ export default {
             organId: organId.join(","),
           };
           try {
-            if( this.activeRow.id){
+            if( this.activeRow?.id){
               obj.id = this.activeRow.id
              const resut = await resetsysMusicScore(obj)
-              this.$$message.success('修改成功')
+              this.$message.success('修改成功')
             }else{
                const resut = await addsysMusicScore(obj);
-               this.$$message.success('添加成功')
+               this.$message.success('添加成功')
             this.$emit("getList");
             this.$emit("close");
             }
@@ -281,7 +280,6 @@ export default {
           }
         }
       });
-      console.log("提交");
     },
     uploadImg() {
       this.$refs.uploadImg.$refs.upload.submit();

+ 2 - 2
vue.config.js

@@ -17,10 +17,10 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // //  https://online.dayaedu.com
 // let target = 'https://online.dayaedu.com' //线上
 // let target = 'http://192.168.3.139:8000' // 箭河
-let target = 'http://192.168.3.124:8000' //邹璇
+// let target = 'http://192.168.3.124:8000' //邹璇
 // let target = 'http://192.168.3.112:8000' //勇哥
 // let target = 'http://dev.dayaedu.com' // 开发环境
-// let target = 'https://test.dayaedu.com' //测试环境
+let target = 'https://test.dayaedu.com' //测试环境
 // let target = 'http://192.168.3.134:8000' // 乔
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {