You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd /home/cf/program/web_vue/
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install webpack -g
cnpm install vue-cli -g
--vue init webpack frontend
cd frontend
cnpm install
vim /home/cf/program/web_vue/frontend/config/index.js
==change host from localhost to 0.0.0.0, so that public ip can be accessed via outside of the server
-> host: '0.0.0.0'
cnpm run dev
Your application is running here: http://0.0.0.0:8082
==client accessing via url
http://150.158.168.151:8082/
new:
cd /home/cf/program/flog/fe/frontend
cnpm run dev
http://150.158.168.151:8080/
project to load data to UI from django
cd /home/cf/program/web_vue/frontend/
cnpm i element-ui -S
==src/main.js change the url IP@
axios.defaults.baseURL = 'http://150.158.168.151:9000/'
- <template scope="scope">
+ <template slot-scope="scope">
seems executing npm run dev---killed.!!!
but cnpm run dev
main important thing is 'cnpm install' sucessfully,
to reboot host,
then both 'cnpm run dev' and 'npm run dev' commands work.
add vue axios get/post/put/delete functions with ugly UI:)