|
@@ -184,13 +184,11 @@ import { ElMessage } from 'element-plus'
|
|
|
import tagsSelect from './tags-select.vue'
|
|
|
import detailCom from './detail.vue'
|
|
|
import {
|
|
|
+ datasetsCancelCollect,
|
|
|
datasetsGetAllByPage,
|
|
|
datasetsTagsBinding,
|
|
|
} from '@/api/modules/knowledge'
|
|
|
-import {
|
|
|
- datasetCollections,
|
|
|
- datasetCollectionsDel,
|
|
|
-} from '@/api/modules/knowledge/collect'
|
|
|
+import { datasetCollections } from '@/api/modules/knowledge/collect'
|
|
|
|
|
|
const AppStore = useAppStore()
|
|
|
const DialogStore = useDialogStore()
|
|
@@ -335,7 +333,7 @@ const onChangeTag = (row, tags) => {
|
|
|
}
|
|
|
const onStart = (row) => {
|
|
|
if (row.datasetCollection) {
|
|
|
- datasetCollectionsDel(row.id)
|
|
|
+ datasetsCancelCollect(row.id)
|
|
|
.then(() => {
|
|
|
ElMessage.success('取消收藏成功!')
|
|
|
})
|