mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: folder edit issue
This commit is contained in:
parent
1ea86202b8
commit
f0ce039499
|
|
@ -54,7 +54,6 @@ import folderApi from '@/api/folder'
|
|||
import { MsgSuccess, MsgAlert } from '@/utils/message'
|
||||
import { t } from '@/locales'
|
||||
import useStore from '@/stores'
|
||||
import disable$ from 'dingtalk-jsapi/api/ui/pullToRefresh/disable'
|
||||
const { tool, knowledge, folder } = useStore()
|
||||
const emit = defineEmits(['refresh'])
|
||||
|
||||
|
|
@ -126,7 +125,6 @@ const submitHandle = async () => {
|
|||
.putFolder(editId.value, sourceType.value, folderForm.value, loading)
|
||||
.then((res) => {
|
||||
MsgSuccess(t('common.editSuccess'))
|
||||
clearData()
|
||||
emit('refresh')
|
||||
dialogVisible.value = false
|
||||
})
|
||||
|
|
|
|||
|
|
@ -343,7 +343,6 @@ import { t } from '@/locales'
|
|||
import { SourceTypeEnum } from '@/enums/common'
|
||||
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
|
||||
import permissionMap from '@/permission'
|
||||
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
const { folder, user, knowledge } = useStore()
|
||||
|
|
@ -496,6 +495,7 @@ watch(
|
|||
() => folder.currentFolder,
|
||||
(newValue) => {
|
||||
if (newValue && newValue.id) {
|
||||
paginationConfig.current_page = 1
|
||||
knowledge.setKnowledgeList([])
|
||||
getList()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -605,6 +605,7 @@ watch(
|
|||
() => folder.currentFolder,
|
||||
(newValue) => {
|
||||
if (newValue && newValue.id) {
|
||||
paginationConfig.current_page = 1
|
||||
tool.setToolList([])
|
||||
getList()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue