From 3e79718d18a360c684b0bd3ead38a58d8a194259 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Mon, 13 Jun 2022 17:35:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E7=B1=BBtab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 4 ++-- src/views/category/index.vue | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.env.production b/.env.production index 8ebfb0b..18c7df6 100644 --- a/.env.production +++ b/.env.production @@ -2,6 +2,6 @@ ENV = 'production' # 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置 # 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http -VUE_APP_BASE_API = 'https://localhost' +VUE_APP_BASE_API = 'http://192.168.99.207:7070' # 如果接口是 http 形式, wss 需要改为 ws -VUE_APP_WS_API = 'wss://localhost' +VUE_APP_WS_API = 'ws://192.168.99.207:7070' diff --git a/src/views/category/index.vue b/src/views/category/index.vue index 5d3ce82..bd4da69 100644 --- a/src/views/category/index.vue +++ b/src/views/category/index.vue @@ -192,6 +192,9 @@ export default { this.crud.selectionChangeHandler([val]) this.$refs.eform.pid = val.id this.selectedCategory = val + if (val.isType === 1 || val.isType === 2) { + this.changeActiveTab(0) + } localStorage.setItem('currentCategoryKey', JSON.stringify(val)) } },