Browse Source

ai模板删除

11wqe1 1 tháng trước cách đây
mục cha
commit
9024364a46
1 tập tin đã thay đổi với 9 bổ sung1 xóa
  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 = [{
                         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
-                        .post(_this.$store.state.api + "deleteTipsTemplate", params)
+                        .post(_this.$store.state.api + api, params)
                         .then((res) => {
                             _this.$message.success(_this.lang.DeleteSuccessful);
                             _this.getList()