This commit is contained in:
aixianling
2023-03-20 09:20:25 +08:00
parent 20408bb71f
commit a024aa6931
3 changed files with 11 additions and 4 deletions

View File

@@ -21,14 +21,13 @@
<script>
import {fullScreenContainer} from '@jiaminghi/data-view'
import AiSprite from "../../AiSprite";
import Classic from "./layout/classic";
import Vue from "vue"
import Primary from "./layout/primary";
export default {
name: "AiDvWrapper",
components: {Primary, Classic, AiSprite},
components: {Primary, Classic},
model: {
prop: 'value',
event: 'change'

View File

@@ -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: () => []},

View File

@@ -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()
}
}