mirror of
https://github.com/PlayEdu/h5.git
synced 2025-12-29 22:09:41 +08:00
课程详情页初步
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user