stash
This commit is contained in:
parent
f7c9d1d069
commit
f3b8a3247e
8 changed files with 322 additions and 105 deletions
|
|
@ -253,7 +253,7 @@ export default createStore({
|
|||
async pushFile({state, dispatch, getters}, {item_id, file}) {
|
||||
const servers = await dispatch('getHomeServers')
|
||||
const data = await servers.post(getters.signAuth, '/api/item_files/'+item_id+'/', file)
|
||||
if (data.mime_type) {
|
||||
if (data.hash) {
|
||||
state.files.push(data)
|
||||
return data
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue