11wqe1 2 месяцев назад
Родитель
Сommit
9024364a46
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      src/components/pages/aiAddCourse/templateDialog.vue

+ 9 - 1
src/components/pages/aiAddCourse/templateDialog.vue

@@ -161,8 +161,16 @@ export default {
                     let params = [{
                     let params = [{
                         id: id
                         id: id
                     }]
                     }]
+                    let api = "deleteTipsTemplate"
+                    if(this.lang.lang == 'com'){
+                        api = "deleteTipsTemplateCom"
+                    }else if (this.lang.lang == 'cn') {
+                        api = "deleteTipsTemplate"
+                    }else{
+                        api = "deleteTipsTemplateHK"
+                    }
                     _this.ajax
                     _this.ajax
-                        .post(_this.$store.state.api + "deleteTipsTemplate", params)
+                        .post(_this.$store.state.api + api, params)
                         .then((res) => {
                         .then((res) => {
                             _this.$message.success(_this.lang.DeleteSuccessful);
                             _this.$message.success(_this.lang.DeleteSuccessful);
                             _this.getList()
                             _this.getList()