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) {