Step F4:任务(Task)& 里程碑(Milestone)管理页面
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from "vue";
|
||||
import { ElAlert } from "element-plus";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useAuthStore } from "../store/auth";
|
||||
import { useStudyStore } from "../store/study";
|
||||
import { fetchFinanceSummary, fetchMyTodoTasks, fetchOverdueAesCount, fetchOverdueQueriesCount, fetchProgress } from "../api/dashboard";
|
||||
@@ -60,6 +61,7 @@ import QuickActions from "../components/QuickActions.vue";
|
||||
|
||||
const auth = useAuthStore();
|
||||
const study = useStudyStore();
|
||||
const router = useRouter();
|
||||
|
||||
const progress = ref<any>(null);
|
||||
const financeSummary = ref<any>(null);
|
||||
@@ -89,7 +91,9 @@ const formatPercent = (v?: number | null) => {
|
||||
};
|
||||
|
||||
const goTasks = () => {
|
||||
window.location.hash = "#"; // placeholder
|
||||
if (study.currentStudy) {
|
||||
router.push("/study/tasks");
|
||||
}
|
||||
};
|
||||
|
||||
const loadData = async () => {
|
||||
|
||||
Reference in New Issue
Block a user