diff --git a/.env.production b/.env.production index c841017..baec654 100644 --- a/.env.production +++ b/.env.production @@ -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' diff --git a/src/views/monitor/online/index.vue b/src/views/monitor/online/index.vue index cb735b6..9fad4d6 100644 --- a/src/views/monitor/online/index.vue +++ b/src/views/monitor/online/index.vue @@ -86,11 +86,6 @@ export default { } }, methods: { - // 获取数据前设置好接口地址 - beforeInit() { - this.url = 'auth/online' - return true - }, doDelete(datas) { this.$confirm(`确认强退选中的${datas.length}个用户?`, '提示', { confirmButtonText: '确定', diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index c38f4b0..1d0c471 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -308,10 +308,6 @@ export default { } }) }, - beforeInit() { - this.url = 'api/users' - return true - }, // 新增与编辑前做的操作 [CRUD.HOOK.afterToCU](crud, form) { this.getDepts()