Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preview.htm 服务开启地址如何查看 #3

Open
lingyan2016 opened this issue May 17, 2022 · 4 comments
Open

preview.htm 服务开启地址如何查看 #3

lingyan2016 opened this issue May 17, 2022 · 4 comments

Comments

@lingyan2016
Copy link

preview.htm 服务开启地址如何查看?求教

@yilujun100
Copy link

preview.html 通过vscode live-server 开启服务后报错(见截图)
error
error-1

@CahierX
Copy link
Owner

CahierX commented May 23, 2022

const iframeIp = process.env.NODE_ENV == 'development' ? 'http://127.0.0.1:5500' : window.location.origin;
const iframeUrl = process.env.NODE_ENV == 'development' ? 'http://127.0.0.1:5500/public/iframe/preview.html' : './iframe/preview.html';

确保这两块的地址修改正确

@lingyan2016
Copy link
Author

lingyan2016 commented May 23, 2022 via email

@crithes
Copy link

crithes commented Jun 16, 2022

大佬,我跟上面的问题一样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants