Jacky 4 years ago
parent
commit
00f0845f3f
2 changed files with 2 additions and 2 deletions
  1. 1 1
      nginx-ui-frontend/src/views/DomainEdit.vue
  2. 1 1
      nginx-ui-frontend/version.json

+ 1 - 1
nginx-ui-frontend/src/views/DomainEdit.vue

@@ -236,7 +236,7 @@ export default {
             this.$message.info("请注意,当前配置中 server_name 必须为需要申请证书的域名,否则无法申请", 5)
             this.$message.info("请注意,当前配置中 server_name 必须为需要申请证书的域名,否则无法申请", 5)
             this.$message.info("正在申请,请稍后")
             this.$message.info("正在申请,请稍后")
             this.ws = new WebSocket(this.getWebSocketRoot() + "/cert/issue/" + this.config.server_name
             this.ws = new WebSocket(this.getWebSocketRoot() + "/cert/issue/" + this.config.server_name
-                + "?token=" + process.env["VUE_APP_API_WSS_TOKEN"])
+                + "?token=" + btoa(this.$store.state.user.token))
 
 
             this.ws.onopen = () => {
             this.ws.onopen = () => {
                 this.ws.send("ping")
                 this.ws.send("ping")

+ 1 - 1
nginx-ui-frontend/version.json

@@ -1 +1 @@
-{"version":"0.1.0","build_id":20}
+{"version":"0.1.0","build_id":21}