Skip to content

Commit

Permalink
feat: 去除cache fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuorui.xx committed Jan 3, 2024
1 parent 9a8f124 commit c3ed181
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 48 deletions.
3 changes: 1 addition & 2 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Typography, Spin, ConfigProvider, theme } from "antd";
import { useState, useEffect } from "react";
import dayjs from "dayjs";
import Notification from "./components/Notification";
import CachedFetch from "./utils/cache_get";
import CampusButtonGroup from "./components/CampusButtonGroup";
import DatePicker from "./components/DatePicker";
import BuildingPicker from "./components/BuildingPicker";
Expand Down Expand Up @@ -46,7 +45,7 @@ function App() {
mql.addEventListener("change", matchMode);

matchMode(mql);
CachedFetch("/api/get_data")
fetch("/api/get_data")
.then((resp) => resp.json())
.then((resp) => {
setResp(resp);
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/ClassTimePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ function ClassTimePicker(props) {
const now_minute = fillZero(now.getMinutes());

for (let i = 0; i <= 13; i++) {
console.log(class_time[i], `${now_hour}:${now_minute}`);
options.push({
label: classes[i],
value: i,
Expand Down
45 changes: 0 additions & 45 deletions frontend/src/utils/cache_get.js

This file was deleted.

0 comments on commit c3ed181

Please sign in to comment.