Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

部署后出现500错误 #34

Answered by BlueSky01st
BlueSky01st asked this question in Q&A
Jul 29, 2021 · 10 comments · 40 replies
Discussion options

You must be logged in to vote

问题找到了

当我共享目录设置为/FirefoxTheme时,我如果要访问文件MaterialFox那么路径为/FirefoxTheme/MaterialFox,
问题就出在中间的/上,
进行路径字符串拼接时,中间加了/base + '/' + path)。
所以当我设置base: "/"时,想访问根目录下的FirefoxTheme,字符串拼接成了//FirefoxTheme,所以会报错,
base设置为空,访问根目录就没有问题,
base: "/FirefoxTheme/"时报错。


Replies: 10 comments 40 replies

Comment options

You must be logged in to vote
18 replies
@hmsjy2017
Comment options

@BlueSky01st
Comment options

@hmsjy2017
Comment options

@People-11
Comment options

@hmsjy2017
Comment options

Comment options

You must be logged in to vote
6 replies
@feilong103
Comment options

@hmsjy2017
Comment options

@feilong103
Comment options

@Jack-Roc
Comment options

@negoces
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ryanphanrp
Comment options

Answer selected by spencerwooo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@ssxwcz
Comment options

@1715173329
Comment options

@tkfanswind
Comment options

@tkfanswind
Comment options

@greatzh
Comment options

Comment options

You must be logged in to vote
2 replies
@tkfanswind
Comment options

@ssxwcz
Comment options

Comment options

You must be logged in to vote
1 reply
@tkfanswind
Comment options

Comment options

You must be logged in to vote
6 replies
@zjuyk
Comment options

@eiyooooo
Comment options

@1715173329
Comment options

@tkfanswind
Comment options

@Kutius
Comment options

Comment options

You must be logged in to vote
1 reply
@spencerwooo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
solved Question in discussion is solved
Converted from issue

This discussion was converted from issue #33 on July 30, 2021 00:34.