Commit eaaf1aff authored by youjie's avatar youjie

no message

parent 81ca5b3b
...@@ -238,6 +238,7 @@ ...@@ -238,6 +238,7 @@
watch: { watch: {
dataAll: { dataAll: {
handler(val, oldVal) { handler(val, oldVal) {
if(val.tripColor){
this.backgroundColor = this.hexToRgb(val.tripColor, 0.2) this.backgroundColor = this.hexToRgb(val.tripColor, 0.2)
let rgba = this.hexToRgb(val.tripColor, 1) let rgba = this.hexToRgb(val.tripColor, 1)
rgba = rgba.split(',') rgba = rgba.split(',')
...@@ -248,16 +249,17 @@ ...@@ -248,16 +249,17 @@
}else{ }else{
this.textColor = "#333" this.textColor = "#333"
} }
}
}, },
deep: true, deep: true,
immediate: false immediate: true
}, },
tripList: { tripList: {
handler(val, oldVal) { handler(val, oldVal) {
console.log(val,'1111--------')
}, },
deep: true, deep: true,
immediate: false immediate: true
}, },
}, },
mounted() { mounted() {
......
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