File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
versioned_docs/version-v7/vue/your-first-app Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export const usePhotoGallery = () => {
5454 photos .value = photos .value .filter ((p ) => p .filepath !== photo .filepath );
5555
5656 // Delete photo file from filesystem
57- const filename = photo .filepath .substr (photo .filepath .lastIndexOf (' /' ) + 1 );
57+ const filename = photo .filepath .slice (photo .filepath .lastIndexOf (' /' ) + 1 );
5858 await Filesystem .deleteFile ({
5959 path: filename ,
6060 directory: Directory .Data ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export const usePhotoGallery = () => {
5454 photos .value = photos .value .filter ((p ) => p .filepath !== photo .filepath );
5555
5656 // Delete photo file from filesystem
57- const filename = photo .filepath .substr (photo .filepath .lastIndexOf (' /' ) + 1 );
57+ const filename = photo .filepath .slice (photo .filepath .lastIndexOf (' /' ) + 1 );
5858 await Filesystem .deleteFile ({
5959 path: filename ,
6060 directory: Directory .Data ,
You can’t perform that action at this time.
0 commit comments