Showing
2 changed files
with
4 additions
and
4 deletions
@@ -15,8 +15,8 @@ module.exports = { | @@ -15,8 +15,8 @@ module.exports = { | ||
15 | port: 6004, | 15 | port: 6004, |
16 | siteUrl: '//m.yohoblk.com', | 16 | siteUrl: '//m.yohoblk.com', |
17 | domains: { | 17 | domains: { |
18 | - api: 'http://192.168.102.202:8080/gateway/', | ||
19 | - service: 'http://192.168.102.202:8080/gateway/' | 18 | + api: 'http://devapi.yoho.cn:58078/', |
19 | + service: 'http://devservice.yoho.cn:58077/' | ||
20 | }, | 20 | }, |
21 | subDomains: { | 21 | subDomains: { |
22 | host: '.m.yohoblk.com', | 22 | host: '.m.yohoblk.com', |
1 | <template> | 1 | <template> |
2 | <div class="upload"> | 2 | <div class="upload"> |
3 | - <form v-on:change="upload"> | 3 | + <form v-el:form v-on:change="upload"> |
4 | <label class="label-input icon" for="{{inputId}}"> | 4 | <label class="label-input icon" for="{{inputId}}"> |
5 | <input id="{{inputId}}" type="file" name="filename"> | 5 | <input id="{{inputId}}" type="file" name="filename"> |
6 | </label> | 6 | </label> |
@@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
18 | }, | 18 | }, |
19 | methods: { | 19 | methods: { |
20 | upload(e) { | 20 | upload(e) { |
21 | - const formData = new FormData(e.target.closest('form')); | 21 | + const formData = new FormData(this.$els.form); |
22 | 22 | ||
23 | formData.append('bucket', this.bucket || ''); | 23 | formData.append('bucket', this.bucket || ''); |
24 | $.ajax({ | 24 | $.ajax({ |
-
Please register or login to post a comment