u
This commit is contained in:
		
							parent
							
								
									c71e514af2
								
							
						
					
					
						commit
						76417a0cbd
					
				| @ -421,6 +421,7 @@ export default { | ||||
|   }, | ||||
| 
 | ||||
|   open_url_in_browser (url) { | ||||
|     url = this.localizeText?.(url) || url | ||||
|     // #ifdef APP-PLUS
 | ||||
|     plus.runtime.openURL(url) | ||||
|     // #endif
 | ||||
| @ -635,7 +636,9 @@ export default { | ||||
|     } | ||||
|   }, | ||||
| 
 | ||||
|   copy_to_clipboard (text, { promptLength = 50, hidePrompt = false, wo = globalThis.wo } = {}) { | ||||
|   copy_to_clipboard (text, { promptLength = 50, hidePrompt = false } = {}) { | ||||
|     text = this.localizeText?.(text) || text | ||||
|     const self = this | ||||
|     uni.setClipboardData({ | ||||
|       data: text, | ||||
|       success: () => { | ||||
| @ -644,9 +647,9 @@ export default { | ||||
|           if (text.length > promptLength) { | ||||
|             text = String(text).substring(0, promptLength) + ' ...' | ||||
|           } | ||||
|           wo?.tt?.showToast?.({ | ||||
|           self.showToast?.({ | ||||
|             type: 'success', | ||||
|             title: `${wo?.ll?.({ zhCN: '已成功拷贝', enUS: 'Successfully copied' })}\n${text}`, | ||||
|             title: `${this.localizeText?.({ zhCN: '已成功拷贝\n', enUS: 'Successfully copied\n' }) || ''}${text}`, | ||||
|           }) | ||||
|         } | ||||
|       }, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user