🔖 v2.4 优化

This commit is contained in:
Elune
2019-12-24 10:52:56 +08:00
parent d278dbf724
commit f7c65d67ca
3 changed files with 3 additions and 11 deletions

View File

@@ -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'

View File

@@ -86,11 +86,6 @@ export default {
}
},
methods: {
// 获取数据前设置好接口地址
beforeInit() {
this.url = 'auth/online'
return true
},
doDelete(datas) {
this.$confirm(`确认强退选中的${datas.length}个用户?`, '提示', {
confirmButtonText: '确定',

View File

@@ -308,10 +308,6 @@ export default {
}
})
},
beforeInit() {
this.url = 'api/users'
return true
},
// 新增与编辑前做的操作
[CRUD.HOOK.afterToCU](crud, form) {
this.getDepts()