11wqe1 3 miesięcy temu
rodzic
commit
9024364a46

+ 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()