Przeglądaj źródła

feat:删除图片

ananzhusen 1 rok temu
rodzic
commit
74346f334e
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/views/components/Graphics.vue

+ 3 - 3
src/views/components/Graphics.vue

@@ -1916,9 +1916,9 @@ const delComponent = async () => {
   let fullname: string =
     delDialog.contextmenuObj.component.fullname ||
     delDialog.contextmenuObj.component.image;
-  if (imageDrive && fullname.startsWith(imageDrive)) {
-    fullname = fullname.slice(imageDrive.length);
-  }
+  //if (imageDrive && fullname.startsWith(imageDrive)) {
+  //  fullname = fullname.slice(imageDrive.length);
+  //}
   if(fullname.startsWith('/file')) {
     fullname = fullname.slice('/file'.length);
   }