Coder Social home page Coder Social logo

Comments (4)

gengsende avatar gengsende commented on June 12, 2024 1

您好好,我把 path.resolve() 换成了path.posix.join(),然后运行正常了。

from electron-admin.

mxin-d avatar mxin-d commented on June 12, 2024

@gengsende 看样子好像是根路由指向错误,看下router/index.js中如何配置的

from electron-admin.

gengsende avatar gengsende commented on June 12, 2024

image
image
我发现是path.resolve执行后就有问题了,是不是webpack配置问题?

from electron-admin.

mxin-d avatar mxin-d commented on June 12, 2024

@gengsende path.resolve把你的路径转成了D:\ + route.path,应该是这个问题,换个api拼接试试,而且windows下在操作路径时要注意‘/’和'\'是有区别的,我们不是去查找文件,只是拼接一个路由字符串

from electron-admin.

Related Issues (3)

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.