Explorar el Código

完善缩略图更新bug

Wind-Breaker1 hace 1 año
padre
commit
bedf5f16d6
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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}`, {