课程详情页初步

This commit is contained in:
禺狨
2023-06-29 16:52:00 +08:00
parent 9861c67d55
commit e262ca34ff
4 changed files with 76 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
import { useState } from "react";
import { useState, useEffect } from "react";
import { Radio, Image } from "antd-mobile";
import styles from "./index.module.scss";
import { useNavigate } from "react-router-dom";
@@ -18,6 +18,10 @@ const ChangeDepartmentPage = () => {
(state: any) => state.loginUser.value.currentDepId
);
useEffect(() => {
document.title = "切换部门";
}, []);
const onDepClick = (value: any) => {
let it = departments.find((o: any) => o.id === value);
if (it) {