gpt4 book ai didi

vue.js - Nuxt如何浏览静态文件

转载 作者:搜寻专家 更新时间:2023-10-30 22:28:13 24 4
gpt4 key购买 nike

我在 static 文件夹下有一个 php 文件。如何浏览 php 文件?

我尝试在配置中使用代理,但它不起作用

/pages
/static
test.php

如何浏览

localhost:port/[proxy]/test.php

谢谢

最佳答案

我想您需要一个网络服务器来处理您的 .php 文件。/static 文件夹用于静态内容。

这是我在文档中找到的:

If you don't want to use Webpack assets from the assets directory, you can create and use the static directory (in your project root folder).

All included files will be automatically served by Nuxt and are accessible through your project root URL. (static/favicon.ico will be available at localhost:3000/favicon.ico)

https://nuxtjs.org/guide/assets/#static

关于vue.js - Nuxt如何浏览静态文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52872824/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com