规范代码

This commit is contained in:
yaoyanan
2021-04-07 18:56:29 +08:00
parent 139fe266e1
commit 312fdfcd79
4 changed files with 3 additions and 10 deletions
@@ -23,11 +23,6 @@
required: false,
default: 25,
}
},
//在定义组件时,指定父组件调用时候的传值属性(prop)和事件类型(event),事件名称要和$emit传的一致
model:{
prop:'value',
event:'change'
}
}
</script>
@@ -50,7 +50,7 @@
name: 'JImageUpload',
data(){
return {
uploadAction:window._CONFIG['domianURL'] + '/sys/common/upload',
uploadAction:window._CONFIG['domianURL']+"/sys/common/upload",
uploadLoading:false,
picUrl:false,
headers:{},
@@ -110,7 +110,6 @@
}
},
created(){
console.log(window._CONFIG['domianURL'] + '/sys/common/upload')
const token = Vue.ls.get(ACCESS_TOKEN);
this.headers = {"X-Access-Token":token}
},
@@ -182,7 +181,7 @@
getAvatarView(){
if(this.fileList.length>0){
let url = this.fileList[0].url
return getFileAccessHttpUrl(url)
return url
}
},
handlePathChange(){
+1 -1
View File
@@ -56,7 +56,7 @@
if(!this.query){
if(!val){
this.checkStatus = false
this.$emit('change', this.options[1]);
this.$emit('check-change', this.options[1]);
}else{
if(this.options[0]==val){
this.checkStatus = true
-1
View File
@@ -163,7 +163,6 @@
}
},
created(){
console.log(this.$attrs)
const token = Vue.ls.get(ACCESS_TOKEN);
//---------------------------- begin 图片左右换位置 -------------------------------------
this.headers = {"X-Access-Token":token};