From ad2ce6cad7b17ec9553f6e5c4f273f4cd363f253 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Mon, 31 Mar 2025 16:28:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E6=A1=8C=E7=A0=81=E6=A0=B9=E6=8D=AE=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E9=85=8D=E7=BD=AE=E6=98=AF=E5=90=A6=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 ++ src/views/tool/table/index.vue | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.env.production b/.env.production index 4cd1de1..ecf542a 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,6 @@ +# 有VITE_APP_NAME=production时隐藏台桌列表绑定桌码功能 +VITE_APP_NAME=production # WebSocket端点(可选) diff --git a/src/views/tool/table/index.vue b/src/views/tool/table/index.vue index 9473938..43cf026 100644 --- a/src/views/tool/table/index.vue +++ b/src/views/tool/table/index.vue @@ -70,9 +70,9 @@ 编辑 - + 删除 @@ -242,6 +242,8 @@ import addTable from "./components/addTable.vue"; import bindCode from "./components/bind-table-code.vue"; import downloadTableCode from "./components/downloadTableCode.vue"; +const envName = import.meta.env.VITE_APP_NAME; + //绑定桌码 const refBindCode = ref(); function showBindCode(item) {