Skip to content

Commit

Permalink
🔖 v2.4 优化
Browse files Browse the repository at this point in the history
  • Loading branch information
elunez committed Dec 24, 2019
1 parent d278dbf commit f7c65d6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ENV = 'production'

# 接口地址
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
VUE_APP_BASE_API = 'https://api.auauz.net'
VUE_APP_WS_API = 'ws://api.auauz.net'
# 如果接口是 http 形式, wss 需要改为 ws
VUE_APP_WS_API = 'wss://api.auauz.net'
5 changes: 0 additions & 5 deletions src/views/monitor/online/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ export default {
}
},
methods: {
// 获取数据前设置好接口地址
beforeInit() {
this.url = 'auth/online'
return true
},
doDelete(datas) {
this.$confirm(`确认强退选中的${datas.length}个用户?`, '提示', {
confirmButtonText: '确定',
Expand Down
4 changes: 0 additions & 4 deletions src/views/system/user/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,6 @@ export default {
}
})
},
beforeInit() {
this.url = 'api/users'
return true
},
// 新增与编辑前做的操作
[CRUD.HOOK.afterToCU](crud, form) {
this.getDepts()
Expand Down

0 comments on commit f7c65d6

Please sign in to comment.