Selaa lähdekoodia

管理中心-我的素材-删除文件夹功能 对接接口

任一存 2 vuotta sitten
vanhempi
commit
f8dc4cd9a6

+ 3 - 4
packages/qjkankan-editor/src/api/index.js

@@ -34,9 +34,8 @@ export function getUserInfo(ok, no) {
  * @param {*} ok 
  * @param {*} no 
  */
- export function getPanoInfo(data, ok, no) {
-    return http.get(`${ossUrl}/720yun_fd_manage/${data||number()}/someData.json?_=${Math.random()}`, {}, ok, no)
-    
+export function getPanoInfo(data, ok, no) {
+  return http.get(`${ossUrl}/720yun_fd_manage/${data||number()}/someData.json?_=${Math.random()}`, {}, ok, no)
 }
 
 
@@ -584,7 +583,7 @@ export function moveToFolder(list, targetId, ancestors) {
 }
 
 export function delFolder(id) {
-  return http.postJson(`${URL_FILL}/manage/dir/move/${id}`)
+  return http.postJson(`${URL_FILL}/manage/dir/remove/${id}`)
 }
 
 /**

+ 1 - 1
packages/qjkankan-editor/src/views/material/folderMixinFactory.js

@@ -181,7 +181,7 @@ export default function(materialType) {
             content: i18n.t("gather.comfirm_delete_folder"),
             okText: i18n.t("gather.delete"),
             ok: () => {
-              delFolder(id, () => {
+              delFolder(id).then(() => {
                 this.$msg.success(i18n.t("gather.delete_success"));
                 this.isRequestingMoreData = true
                 const lastestUsedSearchKey = this.searchKey