1
This commit is contained in:
@@ -197,6 +197,16 @@ export default {
|
||||
fullMessage() {
|
||||
if (!this.resultList || this.resultList.length === 0) return ''
|
||||
return this.resultList.join('\n\n\n')
|
||||
},
|
||||
// 检测移动端
|
||||
isMobile() {
|
||||
if (this.$store?.getters?.device === 'mobile') {
|
||||
return true
|
||||
}
|
||||
if (typeof window !== 'undefined' && window.innerWidth < 768) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
Reference in New Issue
Block a user