瀏覽代碼

后端接口改用买的临时服务器上的,这样用户就不用改浏览器配置了。

任一存 3 年之前
父節點
當前提交
55d6331594
共有 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 = 'v0624.1717'
+const version = 'v0629.1551'
 
 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://192.168.0.245:8008' + res.msg)
+          that.audioPlayer = new Audio('http://120.77.54.202:8008' + 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://192.168.0.245:8008/api/tts/toMp3")
+      XHR.open("POST", "http://120.77.54.202:8008/api/tts/toMp3")
       XHR.setRequestHeader("Content-Type", "application/json;charset=UTF-8")
       XHR.send(JSON.stringify({
         content: text || this.elemType + (this.elemType ? ': ' : '') + this.elemDisc