|
@@ -218,16 +218,22 @@ export default {
|
|
|
},
|
|
|
localIp: '',
|
|
|
localPort: '',
|
|
|
+ serverUrl: null
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.getList();
|
|
|
+ this.getConfigKey("server_url").then(response => {
|
|
|
+ this.serverUrl = response.msg;
|
|
|
+ console.log(this.serverUrl);
|
|
|
+ });
|
|
|
},
|
|
|
mounted() {
|
|
|
this.localIp = this.getLocalIp();
|
|
|
this.localPort = this.getPort()
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
getNowTime() {
|
|
|
var now = new Date()
|
|
|
var year = now.getFullYear() // 得到年份
|
|
@@ -256,8 +262,7 @@ export default {
|
|
|
let params = {
|
|
|
id: row.id,
|
|
|
voiceName: row.voiceName,
|
|
|
- // voiceUrl: that.localIp + ":" + that.localPort + "/details?id=" + row.id,
|
|
|
- voiceUrl: "/details?id=" + row.id,
|
|
|
+ voiceUrl: this.serverUrl + "/details?id=" + row.id,
|
|
|
}
|
|
|
createQrCode(params).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -266,7 +271,9 @@ export default {
|
|
|
that.$modal.msgError("生成失败");
|
|
|
}
|
|
|
});
|
|
|
- this.getList()
|
|
|
+ setTimeout(() => {
|
|
|
+ this.getList()
|
|
|
+ }, 1000);
|
|
|
},
|
|
|
/** 查询景点播报列表 */
|
|
|
getList() {
|