代码拉取完成,页面将自动刷新
用vue开发的黄金网站,
登录、注册、首页、列表、详情、购物车、个人资产、更多
该项目是单页面应用,需要借助nginx部署,nginx部分代码如下:
server {
listen 9888;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
root /var/www/web/;
index index.html;
location / {
try_files $uri $uri/ @rewrites;
}
location @rewrites {
rewrite ^(.+)$ /index.html last;
}
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
# Some basic cache-control for static files to be sent to the browser
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
}
vue确实是一个很不错的选择,组件式开发使得开发效率大幅度提升
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。