规范代码
This commit is contained in:
@@ -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(){
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -163,7 +163,6 @@
|
||||
}
|
||||
},
|
||||
created(){
|
||||
console.log(this.$attrs)
|
||||
const token = Vue.ls.get(ACCESS_TOKEN);
|
||||
//---------------------------- begin 图片左右换位置 -------------------------------------
|
||||
this.headers = {"X-Access-Token":token};
|
||||
|
||||
Reference in New Issue
Block a user