Wind-Breaker1 пре 1 година
родитељ
комит
bedf5f16d6
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/views/components/Graphics.vue

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

@@ -1672,7 +1672,9 @@ const onMenu = async (val: string) => {
         if (imageDrive && path.startsWith(imageDrive)) {
           path = path.slice(imageDrive.length);
         }
-        if(!path.startsWith('/api/file')) {
+        if(path.startsWith('/file')) {
+          path = '/api' + path;
+        } else if(!path.startsWith('/api/file')) {
           path = '/api/file' + path;
         }
         await axios.patch(`${path}`, {