临时提交

This commit is contained in:
lin
2025-10-15 18:59:12 +08:00
parent 83bba5d380
commit d2ffc867e6
7 changed files with 71 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
import {
getTreeList,
update,
add, deleteGroup, getPath, queryTree
add, deleteGroup, getPath, queryTree, sync
} from '@/api/group'
const actions = {
@@ -64,6 +64,16 @@ const actions = {
reject(error)
})
})
},
sync({ commit }) {
return new Promise((resolve, reject) => {
sync().then(response => {
const { data } = response
resolve(data)
}).catch(error => {
reject(error)
})
})
}
}