[ Day25 ]
說明:實作會員註冊&登入派發token
佔位符
<template>
<form method="post" class="registerForm" @submit.prevent>
帳號:<input type="text" v-model="user.username" />
<br />
密碼:<input type="password" v-model="user.password" />
<br />
<button class="btn" @click="submit">註冊</button>
</form>
</template>
<script>
import VueCoreImageUpload from 'vue-core-image-upload'
export default {
components: {
'vue-core-image-upload': VueCoreImageUpload
},
data() {
return {
data:{
src: 'http://img1.vued.vanthink.cn/vued0a233185b6027244f9d43e653227439a.png'
}
}
},
methods: {
imageuploaded(res) {
if (res.errcode == 0) {
this.src = 'http://img1.vued.vanthink.cn/vued751d13a9cb5376b89cb6719e86f591f3.png';
}
}
}
};
</script>
<style>
</style>