zmc
2023-11-02 fd934f83afae1e3fce46db8610837d0e0f4d9393
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()
    },