BUG 89
This commit is contained in:
@@ -39,9 +39,10 @@
|
||||
|
||||
<script>
|
||||
import RightTopBorder from "../rightTopBorder";
|
||||
import AiSprite from "../../../AiSprite";
|
||||
export default {
|
||||
name: "classic",
|
||||
components: {RightTopBorder},
|
||||
components: {AiSprite, RightTopBorder},
|
||||
props: {
|
||||
title: String,
|
||||
views: {default: () => []},
|
||||
|
||||
@@ -47,6 +47,14 @@ export default {
|
||||
current: ""
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
active: {
|
||||
immediate: true,
|
||||
handler(v) {
|
||||
if (v != this.current) this.current = this.$copy(this.active)
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getWeather() {
|
||||
this.$request.post("/app/weather/queryWeather").then(res => {
|
||||
@@ -57,7 +65,6 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.current = this.$copy(this.active)
|
||||
// this.getWeather()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user