Merge branch 'dev' into test

This commit is contained in:
lifizer
2025-04-15 09:50:08 +08:00
4 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ export default {
})
},
historyItemClick(item) {
const paramsStr = `?chatNumber=${item.chatNumber}&title=${item.title}`
const paramsStr = `?chatNumber=${item.chatNumber}&title=${item.title}&click=1`
if (!this.formModule) {
uni.navigateTo({
url: '/aiChat/views/history' + paramsStr
+5 -1
View File
@@ -68,7 +68,11 @@ export const chatMixins = {
}
}.bind(this)).exec()
},
onLoad() {
onLoad(options) {
if (!options.click) {
uni.switchTab({ url: '/pages/home/index' })
return
}
// 监听键盘高度变化
wx.onKeyboardHeightChange((res) => {
console.log('监听键盘高度变化%s', res.height)
+7 -4
View File
@@ -183,10 +183,13 @@ export default {
pageTitle: ''
}
},
onLoad(optisons) {
console.log(optisons)
this.chatNumber = optisons.chatNumber
this.pageTitle = optisons.title
onLoad(options) {
if (!options.click) {
uni.switchTab({ url: '/pages/home/index' })
return
}
this.chatNumber = options.chatNumber
this.pageTitle = options.title
this.pageTitle = this.pageTitle.length > 8 ? (this.pageTitle.substring(0, 8) + '...') : this.pageTitle
this.init()
},
+1 -1
View File
@@ -36,7 +36,7 @@ export default {
},
enterAiChat() {
uni.navigateTo({
url: '/aiChat/views/index'
url: '/aiChat/views/index?click=1'
})
}
}