添加了跳转

This commit is contained in:
2020-10-25 22:07:39 +08:00
parent 2307b87cd8
commit b4d0efd059

View File

@@ -6,7 +6,7 @@
上一周 上一周
</div> </div>
2020年10月 2020年10月
<a-button type="primary" class="button"> 月日历 </a-button> <a-button type="primary" class="button" @click="navto()"> 月日历 </a-button>
<div @click="zhou++"> <div @click="zhou++">
下一周 下一周
<img src="" alt="" /> <img src="" alt="" />
@@ -211,6 +211,7 @@ import { defineComponent, ref, watch } from "vue";
import { getDay, gethour, getminute, gettime, getweek } from "@/utils/date"; import { getDay, gethour, getminute, gettime, getweek } from "@/utils/date";
import store from '@/store'; import store from '@/store';
import { getdatelist, userinfo } from '@/api'; import { getdatelist, userinfo } from '@/api';
import router from '@/router';
export default defineComponent({ export default defineComponent({
props: {}, props: {},
@@ -247,9 +248,13 @@ export default defineComponent({
console.log(week.value); console.log(week.value);
getdates(userid) getdates(userid)
}); });
function navto(){
router.push("/regime/date")
}
return { return {
zhou, zhou,
week, week,
navto
}; };
}, },
}); });