1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2025-07-02 17:29:23 +00:00
This commit is contained in:
孙悟元 2024-11-17 17:07:26 +08:00
parent 72cee17d7f
commit 4e04a37f5b
2 changed files with 8 additions and 4 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
VITE_BACKURL='http://localhost:3030'

View File

@ -1,5 +1,4 @@
<template>
{{ studentList }}<br /><br />{{ homeworkData }}<br /><br />{{ selectedSet }}
<v-container class="main-window" fluid>
<v-row>
<v-col cols="11">
@ -134,7 +133,7 @@ export default {
data() {
return {
backurl: "http://localhost:3030",
backurl: import.meta.env.VITE_BACKURL,
currentEditSubject: null,
studentList: ["加载中"],
selectedSet: new Set(),
@ -193,8 +192,12 @@ export default {
},
setCurrentDate() {
const today = new Date();
this.dateString = today.toISOString().split("T")[0];
if (this.$route.query.date) {
this.dateString = this.$route.query.date;
} else {
const today = new Date();
this.dateString = today.toISOString().split("T")[0];
}
},
handleClose() {