Giter VIP home page Giter VIP logo

Comments (4)

iceqing avatar iceqing commented on August 15, 2024

您好,已经升级到了react18,代码已经提交到了dev_react18分支, 因为升级版本过大,需要一段时间测试,暂时没有合并到主干分支(vite和webpack分支)

https://github.com/iceqing/react-amis-admin/tree/dev_react18

from react-amis-admin.

cstongwei avatar cstongwei commented on August 15, 2024

谢谢大佬。我学习下。有没有群之类的可以交流呀

from react-amis-admin.

cstongwei avatar cstongwei commented on August 15, 2024

大佬,react18的版本能否加个调试的代理配置,解决跨域问题。原来在你这个项目的react16版本上工作的好好的代理配置,换到这个react18的版本就不行了。
代理配置写在vite.config.js里。具体如下:
server: {
port: 4000,
host: "localhost",
open: "/",
proxy: {
'/admin': {
target: 'https://api.xxxxx.com',
changeOrigin: true,
rewrite: (path) => {
return path
}
}
}
},

报错信息如下:
image

from react-amis-admin.

cstongwei avatar cstongwei commented on August 15, 2024

没事了,mock忘记注释掉了。

from react-amis-admin.

Related Issues (20)

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.