This commit is contained in:
liuye
2023-12-25 14:53:27 +08:00
parent 9eac39cd95
commit f7558d3abc
3 changed files with 14 additions and 7 deletions

View File

@@ -89,7 +89,6 @@ export default {
...mapState(['user']),
},
onLoad(option) {
uni.showLoading({title: '加载中'})
this.word = option.word
this.$dict.load('sex', 'nation').then(() => {
this.getInfo()
@@ -100,6 +99,7 @@ export default {
},
methods: {
getInfo() {
uni.showLoading({title: '加载中'})
this.$http.post(`/app/appbaiduai/queryByInfo?word=${this.word}`).then((res) => {
if (res.code === 0) {
this.info = {...res.data}