Skip to content

概述

连锁门店后台前端源码位于 view/store/ 目录。基于 Vue 2 构建,构建产物输出至后端 Web 根目录的 public/store/ 下。


环境准备

  • Node.js:推荐 Node.js 14.x16.x
  • 包管理器npm / cnpm / yarn

本地开发与调试

  1. 进入门店前端目录:
    bash
    cd view/store
  2. 安装依赖:
    bash
    npm install
  3. 启动本地开发服务:
    bash
    npm run serve

生产打包与部署

  1. 执行生产打包:
    bash
    npm run build
  2. 打包完成后产物自动输出至 public/store/ 目录。
  3. 访问 https://域名/store 即可访问门店后台。

Nginx 配置参考

nginx
location /store {
    try_files $uri $uri/ /store/index.html;
}

location /storeapi {
    proxy_pass http://127.0.0.1:20698;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
}

承信租多门店租赁商城系统官方文档