Feat(云灵AI):县域AI和平台AI逻辑区分
This commit is contained in:
@@ -112,6 +112,10 @@ export default {
|
||||
keyboardHeight: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
voiceException: {
|
||||
type: String,
|
||||
default: '没有听清您说了什么,请再说一遍'
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -262,11 +266,11 @@ export default {
|
||||
fail: err => {
|
||||
console.log(err)
|
||||
uni.hideLoading()
|
||||
_this.$toast('没有听清您说了什么,请再说一遍')
|
||||
_this.$toast(_this.voiceException)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
_this.$toast('没有听清您说了什么,请再说一遍')
|
||||
_this.$toast(_this.voiceException)
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -282,7 +286,7 @@ export default {
|
||||
_this.getTransResultReq()
|
||||
}).catch(() => {
|
||||
uni.hideLoading()
|
||||
_this.$toast('没有听清您说了什么,请再说一遍')
|
||||
_this.$toast(_this.voiceException)
|
||||
})
|
||||
},
|
||||
getTransResultReq() {
|
||||
@@ -296,7 +300,7 @@ export default {
|
||||
uni.hideLoading()
|
||||
_this.clearIntervalFn()
|
||||
if (data === '__NULL__') {
|
||||
_this.$toast('没有听清您说了什么,请再说一遍')
|
||||
_this.$toast(_this.voiceException)
|
||||
} else {
|
||||
if (data.length > 0) {
|
||||
const prompt = data[0].Text
|
||||
@@ -308,7 +312,7 @@ export default {
|
||||
}
|
||||
}).catch(() => {
|
||||
uni.hideLoading()
|
||||
_this.$toast('没有听清您说了什么,请再说一遍')
|
||||
_this.$toast(_this.voiceException)
|
||||
})
|
||||
}, 1000)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user