mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2024-10-23 03:06:43 +03:00
fixed uploading issue
This commit is contained in:
parent
9374f5bab8
commit
ea7d95fd48
2 changed files with 2 additions and 6 deletions
|
@ -15,7 +15,7 @@
|
|||
label-idle="Drop file here..."
|
||||
accepted-file-types="application/x-bittorrent"
|
||||
data-max-file-size="1MB"
|
||||
:server="uploaddomain"
|
||||
server="/upload"
|
||||
v-model="Files"
|
||||
/>
|
||||
</div>
|
||||
|
@ -81,8 +81,7 @@ export default {
|
|||
],
|
||||
loading: false,
|
||||
dialog: false,
|
||||
Files: [],
|
||||
uploaddomain: this.$store.getters["GET_UPLOAD_DOMAIN"]
|
||||
Files: []
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -28,12 +28,9 @@ export default new Vuex.Store({
|
|||
authenticated: false,
|
||||
loading: false,
|
||||
sort_options: { sort: 'name', reverse: false },
|
||||
serverdomain: process.env.VUE_APP_DOMAIN,
|
||||
},
|
||||
getters: {
|
||||
CONTAINS_TORRENT: (state) => (hash) => state.selected_torrents.includes(hash),
|
||||
GET_DOMAIN: (state) => state.serverdomain,
|
||||
GET_UPLOAD_DOMAIN: (state) => `${state.serverdomain}/upload`,
|
||||
},
|
||||
mutations: {
|
||||
REFRESH_TORRENTS: async (state) => {
|
||||
|
|
Loading…
Reference in a new issue