瀏覽代碼

feat:删除图片

ananzhusen 1 年之前
父節點
當前提交
74346f334e
共有 1 個文件被更改,包括 3 次插入3 次删除
  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);
   }