Authored by ccbikai

v-el

... ... @@ -15,8 +15,8 @@ module.exports = {
port: 6004,
siteUrl: '//m.yohoblk.com',
domains: {
api: 'http://192.168.102.202:8080/gateway/',
service: 'http://192.168.102.202:8080/gateway/'
api: 'http://devapi.yoho.cn:58078/',
service: 'http://devservice.yoho.cn:58077/'
},
subDomains: {
host: '.m.yohoblk.com',
... ...
<template>
<div class="upload">
<form v-on:change="upload">
<form v-el:form v-on:change="upload">
<label class="label-input icon" for="{{inputId}}">
<input id="{{inputId}}" type="file" name="filename">
</label>
... ... @@ -18,7 +18,7 @@
},
methods: {
upload(e) {
const formData = new FormData(e.target.closest('form'));
const formData = new FormData(this.$els.form);
formData.append('bucket', this.bucket || '');
$.ajax({
... ...