zmc
2023-11-03 2fd7b502110d916d7bc43ab1e88f6586fa2cd3c3
src/sfc/MonthSelect.vue
@@ -17,6 +17,12 @@
import dayjs from 'dayjs';
  export default {
    props:{
      month:{
         type:String,
        default:''
      }
    },
    emits:['submitValue'],
    
    data() {
@@ -24,6 +30,13 @@
        value:''
      }
    },
    watch:{
      month(){
        if(this.month!=''){
          this.value = this.month
        }
      }
    },
    mounted() {
        this.pre_month()
    },