소스 검색

搬家后,后端接口改用局域网地址映射到公网后的地址(每次公网ip改变后都要更新代码)

任一存 3 년 전
부모
커밋
b632a1a42e
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      web/src/config.js
  2. 2 2
      web/src/views/accessibility.vue

+ 1 - 1
web/src/config.js

@@ -9,7 +9,7 @@ switch (process.env.NODE_ENV) {
     break;
 }
 
-const version = 'v0629.1551'
+const version = 'v0713.1012'
 
 module.exports = {
   publicPath,

+ 2 - 2
web/src/views/accessibility.vue

@@ -740,7 +740,7 @@ export default {
           if (that.audioPlayer && !that.audioPlayer.ended) {
             that.audioPlayer.pause()
           }
-          that.audioPlayer = new Audio('http://120.77.54.202:8008' + res.msg)
+          that.audioPlayer = new Audio('http://125.89.55.195:10803' + res.msg)
           that.audioPlayer.muted = that.ariaSettings.isMuted
           that.audioPlayer.playbackRate = speechRateFactors[that.ariaSettings.speechRateLevel]
           that.audioPlayer.oncanplaythrough = () => {
@@ -762,7 +762,7 @@ export default {
           }
         }
       }
-      XHR.open("POST", "http://120.77.54.202:8008/api/tts/toMp3")
+      XHR.open("POST", "http://125.89.55.195:10803/api/tts/toMp3")
       XHR.setRequestHeader("Content-Type", "application/json;charset=UTF-8")
       XHR.send(JSON.stringify({
         content: text || this.elemType + (this.elemType ? ': ' : '') + this.elemDisc