Commit 0fff5835 by xuebiao

发布博客2

parent c7e2f4b1
......@@ -114,7 +114,7 @@
</div>
</div>
</card-container>
<yun-cropper :cropperW="7":cropperH="5" :type="1" :autoCrop="false" :file="addFile" v-on:listenCropperPic="getCroppedPic"></yun-cropper>
<yun-cropper :type="1" :autoCrop="false" :file="addFile" v-on:listenCropperPic="getCroppedPic"></yun-cropper>
</div>
</div>
</template>
......@@ -176,7 +176,7 @@
addFile:{},
userCover:'',
cover:'',
originLink:'null',
originLink:'',
//blogAbstract:'',
questionClass: '',
img:"",
......@@ -222,18 +222,24 @@
},
dataPost() {
this.cover = this.userCover;
if (this.originLink.slice(0, 12) === "https://www."||this.originLink==="null") {
if (this.cover === '') {
this.dataPostSaveUserInfo(2)
if (this.originLink.slice(0, 12) === "https://www." || this.originLink.length === 0) {
if (this.originLink.length === 0) {
this.originLink = "null";
}
if (this.cover === '') {
this.dataPostSaveUserInfo(2)
} else {
this.dataPostSaveUserInfo(1)
}
} else {
this.dataPostSaveUserInfo(1)
this.$message({
message: "请输入开头为https://www.的有效网址",
type: 'warning'
})
}
}else {
this.$message({
message:"请输入开头为https://www.的有效网址",
type:'warning'
})
}
},
dataPostSaveUserInfo(type){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment