feat: upload Rename Input done.

This commit is contained in:
chiayin
2024-01-05 14:24:12 +08:00
parent 65c42312ee
commit 3fb18d4a17
3 changed files with 67 additions and 22 deletions

View File

@@ -4,7 +4,6 @@ import moment from 'moment';
import apiError from '@/module/apiError.js';
import Swal from 'sweetalert2';
import { uploadFailed, uploadloader, uploadSuccess } from '@/module/alertModal.js'
import { registerRuntimeCompiler } from "vue";
export default defineStore('filesStore', {
state: () => ({
@@ -177,10 +176,8 @@ export default defineStore('filesStore', {
try {
const response = await axios.put(api, data);
console.log('response:', response);
this.uploadFileName = null;
} catch(error) {
console.log('error:', error);
apiError(error, 'Failed to rename.');
}
}