添加了跳转
This commit is contained in:
		
							parent
							
								
									2307b87cd8
								
							
						
					
					
						commit
						b4d0efd059
					
				@ -6,7 +6,7 @@
 | 
			
		||||
                上一周
 | 
			
		||||
            </div>
 | 
			
		||||
            2020年10月
 | 
			
		||||
            <a-button type="primary" class="button"> 月日历 </a-button>
 | 
			
		||||
            <a-button type="primary" class="button" @click="navto()"> 月日历 </a-button>
 | 
			
		||||
            <div @click="zhou++">
 | 
			
		||||
                下一周
 | 
			
		||||
                <img src="" alt="" />
 | 
			
		||||
@ -211,6 +211,7 @@ import { defineComponent, ref, watch } from "vue";
 | 
			
		||||
import { getDay, gethour, getminute, gettime, getweek } from "@/utils/date";
 | 
			
		||||
import store from '@/store';
 | 
			
		||||
import { getdatelist, userinfo } from '@/api';
 | 
			
		||||
import router from '@/router';
 | 
			
		||||
 | 
			
		||||
export default defineComponent({
 | 
			
		||||
    props: {},
 | 
			
		||||
@ -247,9 +248,13 @@ export default defineComponent({
 | 
			
		||||
            console.log(week.value);
 | 
			
		||||
            getdates(userid)
 | 
			
		||||
        });
 | 
			
		||||
        function navto(){
 | 
			
		||||
            router.push("/regime/date")
 | 
			
		||||
        }
 | 
			
		||||
        return {
 | 
			
		||||
            zhou,
 | 
			
		||||
            week,
 | 
			
		||||
            navto
 | 
			
		||||
        };
 | 
			
		||||
    },
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user