feat: del unuse code
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import useAxios from "axios-hooks";
|
||||
import { Page, Result } from "@/types/http";
|
||||
import { Result } from "@/types/http";
|
||||
|
||||
export interface MockResult {
|
||||
id: number;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import React from "react";
|
||||
import { NavBar, SafeArea, Toast } from "antd-mobile";
|
||||
import { useNavigate, useLocation } from "react-router-dom";
|
||||
import { User, CattleZodiac, Right } from "@icon-park/react";
|
||||
import { NavBar, SafeArea } from "antd-mobile";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import "./index.less";
|
||||
|
||||
interface MainLayoutProps {
|
||||
@@ -49,7 +48,6 @@ const MainLayout: React.FC<MainLayoutProps> = ({
|
||||
const goBack = () => {
|
||||
// 打印路由栈
|
||||
|
||||
|
||||
// debugger;
|
||||
if (onLink) {
|
||||
onLink?.();
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import { BrowserRouter } from "react-router-dom";
|
||||
import App from "@/view/app/App.tsx";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Route, RouterProvider, Routes } from "react-router-dom";
|
||||
import { Route, Routes } from "react-router-dom";
|
||||
import { routes, AppRoute } from "./routes";
|
||||
import AuthRoute from "./auth.tsx";
|
||||
import { Suspense } from "react";
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { createBrowserRouter, Navigate } from "react-router-dom";
|
||||
import { Navigate } from "react-router-dom";
|
||||
import { lazy } from "react";
|
||||
import { type Router } from "react-router-dom";
|
||||
|
||||
export interface AppRoute {
|
||||
path: string;
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import MainLayout from "@/layout/main/mainLayout";
|
||||
import { useEffect, useState } from "react";
|
||||
import { useState } from "react";
|
||||
import { Divider, Space } from "antd-mobile";
|
||||
import Translate from "./translate/index";
|
||||
import { Electrocardiogram, Filter, GithubOne, HamburgerButton } from "@icon-park/react";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useSafeNavigate } from "@workspace/hooks";
|
||||
// import { useSafeNavigate } from "@workspace/hooks";
|
||||
import "./index.less";
|
||||
|
||||
function Index() {
|
||||
const [visible, setVisible] = useState<boolean>(false);
|
||||
const safeNavigate = useSafeNavigate();
|
||||
// const safeNavigate = useSafeNavigate();
|
||||
const navigate = useNavigate();
|
||||
|
||||
const onLink = (link: string) => {
|
||||
|
||||
@@ -14,7 +14,7 @@ interface DefinedProps {
|
||||
}
|
||||
function Index(props: DefinedProps) {
|
||||
const { isRecording } = props;
|
||||
const { loading: uploadLoading, error: uploadError, uploadAudio } = useUploadAudio();
|
||||
const { loading: _uploadLoading, error: _uploadError, uploadAudio } = useUploadAudio();
|
||||
const [hasPermission, setHasPermission] = useState<boolean>(false); //是否有权限
|
||||
const [isPermissioning, setIsPermissioning] = useState<boolean>(true); //获取权限中
|
||||
const [recordingDuration, setRecordingDuration] = useState<number>(0); //录音时长进度
|
||||
|
||||
Reference in New Issue
Block a user