http://tauri.localhost能否被配置,我用的是相对路径/api,本地静态文件打包 #1116
Unanswered
zhangboyanzhangboyan
asked this question in
Q&A
Replies: 1 comment
-
|
或许改静态文件的请求地址为绝对路径,或者改host,甚至改tauri的配置文件都可以解决这个问题,但是我还是想尝试一下,或许代理也是对的,是我弄错了,求解 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
请问我需要打包本地静态文件,axios请求的地址是/api,打包后会在前面默认拼上http://tauri.localhost这个地址,请问这个地址能否开放参数来进行配置
我一开始以为代理可以解决这个问题,但发现配置了代理似乎也不起作用
Beta Was this translation helpful? Give feedback.
All reactions