BUG 89
This commit is contained in:
		@@ -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'
 | 
			
		||||
 
 | 
			
		||||
@@ -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