From 0d261efd4949f78cf68f4aee4fa227b8c0b6f826 Mon Sep 17 00:00:00 2001 From: van Date: Tue, 7 Apr 2026 02:23:46 +0800 Subject: [PATCH] 1 --- .env.development | 16 +-- .env.production | 10 +- package.json | 1 + src/views/system/jdorder/orderList.vue | 137 ++++++++++++------------- vue.config.js | 15 +-- 5 files changed, 90 insertions(+), 89 deletions(-) diff --git a/.env.development b/.env.development index a48e59e..dade8c9 100644 --- a/.env.development +++ b/.env.development @@ -1,12 +1,16 @@ # 页面标题 -VUE_APP_TITLE = Jarvis +VUE_APP_TITLE=Jarvis # 开发环境配置 -ENV = 'development' - +ENV=development # 路由懒加载 -VUE_CLI_BABEL_TRANSPILE_MODULES = true +VUE_CLI_BABEL_TRANSPILE_MODULES=true + +# 前端请求前缀(与 axios baseURL 一致);由 vue.config.js devServer 代理到下方后端 VUE_APP_BASE_API=/jarvis-api -# VUE_APP_BASE_API = 'http://127.0.0.1:30313' -port = 8888 + +# 仅 npm run dev 时生效:webpack 将 /jarvis-api 代理到该地址(可改为本机或其它局域网 IP) +VUE_APP_DEV_PROXY_TARGET=http://192.168.8.88:30313 + +port=8888 diff --git a/.env.production b/.env.production index 652a695..efeb21a 100644 --- a/.env.production +++ b/.env.production @@ -1,10 +1,10 @@ # 页面标题 -VUE_APP_TITLE = Jarvis +VUE_APP_TITLE=Jarvis # 生产环境配置 -ENV = 'production' - -# Jarvis/生产环境 +ENV=production +# 打包后接口前缀:浏览器请求「当前站点域名 + 此前缀」,由部署机 Nginx 反代到公网/内网后端(勿写死 IP) VUE_APP_BASE_API=/jarvis-api -port = 8888 + +port=8888 diff --git a/package.json b/package.json index 7a627be..9e21574 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "license": "MIT", "scripts": { "dev": "vue-cli-service serve", + "prod": "vue-cli-service build", "build:prod": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", "preview": "node build/index.js --preview" diff --git a/src/views/system/jdorder/orderList.vue b/src/views/system/jdorder/orderList.vue index d6be1c2..3692292 100644 --- a/src/views/system/jdorder/orderList.vue +++ b/src/views/system/jdorder/orderList.vue @@ -506,79 +506,62 @@ + - - + + - - - - - - - - - - - - - - - @@ -591,7 +574,6 @@ -