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

build版本问题 #15

Open
neilyongge opened this issue Sep 10, 2017 · 5 comments
Open

build版本问题 #15

neilyongge opened this issue Sep 10, 2017 · 5 comments

Comments

@neilyongge
Copy link

下载zip后, yarn insatll安装。
然后运行 npm run build.
然后将dist目录下的 index.html 和 static文件夹 放到tomcat或apache服务器目录下。
访问程序,界面无内容。

npm run dev 开发版正常

@padro1617
Copy link

有谁解决了 npm run build 打开无效的问题吗

@ndotsc
Copy link

ndotsc commented Jan 16, 2018

一样的问题,run build产生的dist目录下的index.html和static文件夹,无论本地访问还是放到服务器页面只有一个背景色,js未被执行 run dev正常。希望尽早解决这个问题,http://demo.vuethink.com这个demo是如何运行的,请告知

@xylong
Copy link

xylong commented Apr 12, 2018

我给VueThink的php单独配了个域名,如下:
PHP单独的:php.vt.com("E:\wamp\www\VueThink\php\public")
Vuethink的:vt.com("E:\wamp\www\VueThink\dist")

main.js的axios.defaults.baseURL和window.HOST都改为‘http://php.vt.com/’,
npm run build出来的dist丢到Vuethink根目录就能通过vt.com正常访问了,
npm run dev的开发板也能通过localhost:8080或vt.com:8080访问

@LoweMuo
Copy link

LoweMuo commented Jan 24, 2019

把 /src/main.js 里的 mode: 'history', 这行代码注释掉就好了

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

6 participants
@padro1617 @xylong @ndotsc @LoweMuo @neilyongge and others