@@ -30,9 +30,7 @@
},
data(){
- return{
-
- }
+ return{}
methods:{
isShowPop(){
@@ -65,14 +63,20 @@
upLoadOss(path){
upLoadingFileOss(path).then((res)=>{
- console.log(res);
+ if(res){
+ this.value = res
+ }else{
+ tools.error('头像上传失败')
+ }
+ tools.hideLoading()
}).catch(()=>{
tools.hideLoading()
})
+ this.$refs.popup.close()
}
-</script>
+</script>
<style scoped lang="scss">
.box{