소스 검색

no message

WIN-8NDK4S1KEGQ\Administrator 3 년 전
부모
커밋
b6cb34dd95
1개의 변경된 파일9개의 추가작업 그리고 5개의 파일을 삭제
  1. 9 5
      components/en-utils/en-head-img.vue

+ 9 - 5
components/en-utils/en-head-img.vue

@@ -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{