提交 f7c5d082 authored 作者: pengxiaohui's avatar pengxiaohui

修改bug

上级 bf441cd5
......@@ -298,8 +298,12 @@ export default {
fetchContentTypeList() {
if (this.form.project_id) {
getProjectContentTypeList(this.pageType, { project_id: this.form.project_id }).then((res) => {
if (res.code === 0 && Array.isArray(res.data)) {
this.typeList = res.data
if (res.code === 0 && res.message === 'SUCCESS') {
if (Array.isArray(res.data)) {
this.typeList = res.data
} else {
this.typeList = []
}
}
})
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论