Giter VIP home page Giter VIP logo

fluxy-admin-web's Introduction

安装依赖

pnpm install

启动项目

npm start

fluxy-admin-web's People

Contributors

dbfu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

fluxy-admin-web's Issues

首页根据角色不同变化

之前用vue项目,动态菜单,默认登录后进入动态菜单第一项,也可以说动态菜单的第一项,默认是首页,但这个路径还是动态菜单的正常路径,并非/。这样就不用提前在router中定义首页了。刚接触react项目,不知道这个需求是否可行?

git clone了web和server,部署好之后,打开网站会出现大量的警告。

instrument.ts:132 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
at App (http://localhost:5173/src/app.tsx?t=1696342121320:33:7)
(anonymous) @ instrument.ts:132
printWarning @ react-dom.development.js:86
error @ react-dom.development.js:60
validateFunctionComponentInDev @ react-dom.development.js:20193
mountIndeterminateComponent @ react-dom.development.js:20160
beginWork @ react-dom.development.js:21587
beginWork$1 @ react-dom.development.js:27426
performUnitOfWork @ react-dom.development.js:26557
workLoopSync @ react-dom.development.js:26466
renderRootSync @ react-dom.development.js:26434
performConcurrentWorkOnRoot @ react-dom.development.js:25738
workLoop @ scheduler.development.js:266
flushWork @ scheduler.development.js:239
performWorkUntilDeadline @ scheduler.development.js:533
instrument.ts:132 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of App.
at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:7163:28)
at App (http://localhost:5173/src/app.tsx?t=1696342121320:33:7)
(anonymous) @ instrument.ts:132
printWarning @ react-dom.development.js:86
error @ react-dom.development.js:60
validateFunctionComponentInDev @ react-dom.development.js:20193
mountIndeterminateComponent @ react-dom.development.js:20160
beginWork @ react-dom.development.js:21587
beginWork$1 @ react-dom.development.js:27426
performUnitOfWork @ react-dom.development.js:26557
workLoopSync @ react-dom.development.js:26466
renderRootSync @ react-dom.development.js:26434
performConcurrentWorkOnRoot @ react-dom.development.js:25738
workLoop @ scheduler.development.js:266
flushWork @ scheduler.development.js:239
performWorkUntilDeadline @ scheduler.development.js:533
instrument.ts:132 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of App.
at App (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:15002:16)
at FormProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:5393:31)
at LocaleProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:5884:13)
at SizeContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:6920:5)
at ProviderChildren (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:7045:5)
at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:7163:28)
at App (http://localhost:5173/src/app.tsx?t=1696342121320:33:7)
(anonymous) @ instrument.ts:132
printWarning @ react-dom.development.js:86
error @ react-dom.development.js:60
validateFunctionComponentInDev @ react-dom.development.js:20193
mountIndeterminateComponent @ react-dom.development.js:20160
beginWork @ react-dom.development.js:21587
beginWork$1 @ react-dom.development.js:27426
performUnitOfWork @ react-dom.development.js:26557
workLoopSync @ react-dom.development.js:26466
renderRootSync @ react-dom.development.js:26434
performConcurrentWorkOnRoot @ react-dom.development.js:25738
workLoop @ scheduler.development.js:266
flushWork @ scheduler.development.js:239
performWorkUntilDeadline @ scheduler.development.js:533
instrument.ts:132 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of App.
at Router (http://localhost:5173/src/router.tsx?t=1696342121320:89:11)
at ErrorBoundary (http://localhost:5173/node_modules/.vite/deps/@sentry_react.js?v=5e5a0711:16521:5)
at div
at App (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:15002:16)
at FormProvider2 (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:5393:31)
at LocaleProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:5884:13)
at SizeContextProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:6920:5)
at ProviderChildren (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:7045:5)
at ConfigProvider (http://localhost:5173/node_modules/.vite/deps/chunk-REEGOVGH.js?v=5e5a0711:7163:28)
at App (http://localhost:5173/src/app.tsx?t=1696342121320:33:7)
(anonymous) @ instrument.ts:132
printWarning @ react-dom.development.js:86
error @ react-dom.development.js:60
validateFunctionComponentInDev @ react-dom.development.js:20193
mountIndeterminateComponent @ react-dom.development.js:20160
beginWork @ react-dom.development.js:21587
beginWork$1 @ react-dom.development.js:27426
performUnitOfWork @ react-dom.development.js:26557
workLoopSync @ react-dom.development.js:26466
renderRootSync @ react-dom.development.js:26434
performConcurrentWorkOnRoot @ react-dom.development.js:25738
workLoop @ scheduler.development.js:266
flushWork @ scheduler.development.js:239
performWorkUntilDeadline @ scheduler.development.js:533
instrument.ts:132 Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

别人有遇到这个问题吗?

npm install 安装时项目依赖有冲突

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.3.0 || ^17.0.0" from [email protected]
npm ERR! node_modules/react-sortable-hoc
npm ERR! react-sortable-hoc@"^2.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
我们需要react18.2.0版本,但react-sortable-hoc@"^2.0.0"又要求使用react@"^16.3.0 || ^17.0.0",这个怎么解决好?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.