Browse Source

门类tab

master
xuhuajiao 3 years ago
parent
commit
3e79718d18
  1. 4
      .env.production
  2. 3
      src/views/category/index.vue

4
.env.production

@ -2,6 +2,6 @@ ENV = 'production'
# 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置 # 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http # 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
VUE_APP_BASE_API = 'https://localhost'
VUE_APP_BASE_API = 'http://192.168.99.207:7070'
# 如果接口是 http 形式, wss 需要改为 ws # 如果接口是 http 形式, wss 需要改为 ws
VUE_APP_WS_API = 'wss://localhost'
VUE_APP_WS_API = 'ws://192.168.99.207:7070'

3
src/views/category/index.vue

@ -192,6 +192,9 @@ export default {
this.crud.selectionChangeHandler([val]) this.crud.selectionChangeHandler([val])
this.$refs.eform.pid = val.id this.$refs.eform.pid = val.id
this.selectedCategory = val this.selectedCategory = val
if (val.isType === 1 || val.isType === 2) {
this.changeActiveTab(0)
}
localStorage.setItem('currentCategoryKey', JSON.stringify(val)) localStorage.setItem('currentCategoryKey', JSON.stringify(val))
} }
}, },

Loading…
Cancel
Save