提交 1ac6ad42 authored 作者: lihuihui's avatar lihuihui

修改项目标识

上级 66f28d13
......@@ -28,7 +28,7 @@ export function updateQuestionCategory(id, data) {
* 知识点标签搜索
*/
export function searchTag(params) {
return httpRequest.get('/api/qbs/admin/v1/knowledge-point/search/x1', { params })
return httpRequest.get(`/api/qbs/admin/v1/knowledge-point/search/${params.project_prefix}`, { params })
}
/**
* 新建试题
......
......@@ -233,7 +233,7 @@ export default {
},
// 知识点搜索
remoteMethod(query) {
searchTag({ title: query }).then(res => {
searchTag({ project_prefix: this.activeProject.tag, title: query }).then(res => {
this.pointOptions = res.data.data
})
},
......
......@@ -152,6 +152,11 @@ export default {
}
}
},
computed: {
activeProject() {
return this.$store.state.activeProject || {}
}
},
mounted() {
this.getTreeList()
},
......@@ -242,7 +247,7 @@ export default {
},
// 知识点搜索
remoteMethod(query) {
searchTag({ title: query }).then(res => {
searchTag({ project_prefix: this.activeProject.tag, title: query }).then(res => {
this.pointOptions = res.data.data
})
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论