Git Product home page Git Product logo

Comments (8)

chendishen avatar chendishen commented on May 29, 2024 1

@weijie-he 已经发布了新的版本,你可以尝试一下问题有没解决

from react-live2d.

chendishen avatar chendishen commented on May 29, 2024

今天有另一位使用者也反馈了类似的问题,设置PathFull={'../Resources/'},PathFull可以设置绝对路径或者相对路径,正确指向到模型资源就可以了

from react-live2d.

weijie-he avatar weijie-he commented on May 29, 2024

好的,之前没有注意到还有这个参数。

from react-live2d.

weijie-he avatar weijie-he commented on May 29, 2024

好像改了还是不对,PathFull 设置的路径,只到Resources这一层,但出错的是下一层,Hiyori这层。
我觉得是不是下面这边代码写的有问题。
你modelPath中最后已经加了“/”了,但是传入到loadAssets方法中,拼接路径时又加了“/”。
image

image

from react-live2d.

chendishen avatar chendishen commented on May 29, 2024

其实,请求资源的双斜杠不会导致你加载不出来,你报错是500

from react-live2d.

chendishen avatar chendishen commented on May 29, 2024

我实例网站里是直接build发布上去的,资源指向是跟run dev一样,也不需要额外修改资源指向。那位使用者的遇到的需要PathFull重新指向目录,是因为他的目录结构不一样,所以需要重新指向资源。

from react-live2d.

weijie-he avatar weijie-he commented on May 29, 2024

因为我后端使用了spring security 。报错信息是这样的:

There was an unexpected error (type=Internal Server Error, status=500).
The request was rejected because the URL contained a potentially malicious String "//"

有双斜杠的话,请求会被拒绝,你可以参考一下这个链接:
The request was rejected because the URL was not normalized

from react-live2d.

weijie-he avatar weijie-he commented on May 29, 2024

解决了,非常感谢!

from react-live2d.

Related Issues (12)

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.